Re: Draft 2 is now available

From: Paul Floyd <Paul_Floyd_at_.....>
Date: Thu Jan 17 2008 - 02:53:29 PST
Hi again David

>
> "
> 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);
>
> "

Just one small thing, that should be ceil(a/b) and floor(a/b). [Thanks 
top my colleague Fabrice.]

Regards
Paul
-- 
Dr. Paul Floyd
Mentor Graphics Corporation


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Jan 17 02:53:52 2008

This archive was generated by hypermail 2.1.8 : Thu Jan 17 2008 - 02:54:02 PST