in reply to strange result for a simple addition ??

Like other computer languages, the default for perl is to store floating point numbers in binary floating point. This doesn't exactly match up with decimal floating point. There is some round off error going back and fourth, and that's what you are seeing.

You can

  • Comment on Re: strange result for a simple addition ??