Octavian Rasnita wrote:
Well, in PHP that calculation is made well, so I think there is a bug in perl.
No, it's not. PHP rounds off the number before printing. In Perl: printf "%.2f", $x; or $x = sprintf "%.2f", $x; -- Just my 0.00000002 million dollars worth, Shawn Programming is as much about organization and communication as it is about coding. Regardless of how small the crowd is, there is always one in it who has to find out the hard way that the laws of physics applies to them too. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/