in reply to Re: Math::round not rounding correctly (simple)
in thread Math::round not rounding correctly

You got 3461.49999999999950000000? Because I didn't.

What's your OS name and version? What's your perl version? Perhaps we have a difference of some math library or something.

  • Comment on Re^2: Math::round not rounding correctly (simple)

Replies are listed 'Best First'.
Re^3: Math::round not rounding correctly (edit)
by tye (Sage) on Dec 23, 2014 at 20:33 UTC

    You got 3461.49999999999950000000? Because I didn't.

    What's your OS name and version? What's your perl version? Perhaps we have a difference of some math library or something.

    (Prior node quoted in entirety due to rash of prior "edit"s.)

    So I edited my prior node to correct my mis-paste. Clearly "%.4f" would not yield that many trailing digits. To get 20 trailing digits, I clearly had used "%.20f" (which is what my node now shows). (I also replied as edits are not so easy to notice, naturally.)

    Please try again.

    - tye