in reply to Decimal numbers calculations done inconsistently: Odd behavior!

FAQ: http://perldoc.perl.org/perlfaq4.html#Why-am-I-getting-long-decimals-%28eg,-19.9499999999999%29-instead-of-the-numbers-I-should-be-getting-%28eg,-19.95%29?

printf

  • Comment on Re: Decimal numbers calculations done inconsistently: Odd behavior!