From: "Torsten" <dorsch...@yahoo.de>

> 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: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to