--- DavidK wrote:
> What I was trying to show is that this equation:
>  x /  (1 + sysRandomMax / n )
> 
> for some small set of numbers does not equal
> x * n / (sysRandomMax + 1)
> 
> due to floating point round off error

But Danny's point was that
  x / (1 + sysRandomMax / n)
is rarely going to be equal to
  x * n / (sysRandomMax + 1)
using any computer programming language, because the
normal precedence rules cause the division in (1 +
sysRandomMax / n) to be done before the addition.


__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
http://geocities.yahoo.com/ps/info1

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to