On Fri, 31 Aug 2012 15:28:38 +0300 "Octavian Rasnita" <orasn...@gmail.com> wrote:
> 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 > > A known problem; it's call Numerical Analysis https://en.wikipedia.org/wiki/Numerical_analysis -- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. _Perl links_ official site : http://www.perl.org/ beginners' help : http://learn.perl.org/faq/beginners.html advance help : http://perlmonks.org/ documentation : http://perldoc.perl.org/ news : http://perlsphere.net/ repository : http://www.cpan.org/ blog : http://blogs.perl.org/ regional groups : http://www.pm.org/ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/