P is for Practical | |
PerlMonks |
Re: Modulus Inconsistencies (Or Calling all Mathematicians)by aquarium (Curate) |
on Mar 27, 2003 at 03:05 UTC ( [id://246153]=note: print w/replies, xml ) | Need Help?? |
has anyone considered yet that it may be valid to
perform -7%4 as -(7%4)..so -3 is valid. Generally, computer implementations for math other than binary are weak when they use floating point math. It's always a matter of how close is good enough...ask a scientist.
Chris
In Section
Seekers of Perl Wisdom
|
|