in reply to finding the correct integer
see Humans have too many fingers
Depending on use case there are different solutions, one is to calculate with integers without decimal fractions (like do currency in cent and add the point only at output)
PS: we had a similar discussion just recently
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
|
---|