[EMAIL PROTECTED] wrote: > Luckily I was easily able to recreate the problem. See code below: > > print 37.75 - 33.67 - 4.08 ; > <STDIN>; > > I find these things all the time. Is there a particular > module I can use > to fix these things? > > Output is > > -1.77635683940025e-015 > > Should be 0
That is zero, within the limits of the precision of floating point numbers. Read the faq article: perldoc -q 'long decimals' There are a number of modules on CPAN that go beyond the FAQ to address this issue. What are you trying to do? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]