Hello Stuart, The text between Table 4-5 and Table 4-6 in Clause 4.2.4 - Arithmetic operators, discusses the modulus operator. <QUOTE> The modulus operator, for example y % z, gives the remainder when the first operand is divided by the second, and thus is zero (0) when z divides y exactly. The result of a modulus operation takes the sign of the first operand. For the case of the modulus operator where either argument is real, the operation performed is a % b = a - floor(a/b)*b; <ENDQUOTE> Could you please replace that with the following text: <QUOTE> The modulus operator, (for example a % b), gives the remainder when the first operand is divided by the second, and thus is zero (0) when b divides a exactly. The result of a modulus operation takes the sign of the first operand. It shall be an error to pass zero (0) as the second argument to the modulus operator. For the case of the modulus operator where either argument is real, the operation performed is: a % b = ((a/b) < 0) ? (a - ceil(a/b)*b) : (a - floor(a/b)*b); <ENDQUOTE> Cheers... Dave -- ===================================== -- David Miller -- Design Technology (Austin) -- Freescale Semiconductor -- Ph : 512 996-7377 Fax: x7755 ===================================== -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Thu Jan 17 10:48:04 2008
This archive was generated by hypermail 2.1.8 : Thu Jan 17 2008 - 10:48:21 PST