From: "Torsten" <[email protected]>

> Hey,
> 
> I found a strange behaviour for printf: If you do for example
> 
> printf "%d",29/100*100
> 
> you get 28. But with
> 
> printf "%d",29*100/100
> 
> it's 29. Seems to be related to rounding.


Yep

use bignum;

might help.

Octavian


--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/


Reply via email to