in reply to Re: Unexpected inf and NaN (+ example)
in thread Unexpected inf and NaN

you shouldn't use int

Math::BigFloat overloads int(), so it's ok to use it.
However, the overloaded int() function returns a Math::BigInt object. (I don't see any need for it to do that ... it just makes things confusing.)

Anyway, *that*, of course, brings us to the caveat you mentioned.

Cheers,
Rob

Replies are listed 'Best First'.
Re^3: Unexpected inf and NaN
by LanX (Saint) on Jan 10, 2014 at 09:54 UTC
    > However, the overloaded int() function returns a Math::BigInt object.

    agreed, see my update in the meantime.

    > (I don't see any need for it to do that ... it just makes things confusing.)

    Math::BigInt is mentioned quite often in the docs, e.g.

    Math library Math with the numbers is done (by default) by a module called Math::Bi +gInt::Calc. This is equivalent to saying:

    So I suppose there is some intended interoperability between these modules.

    Obviously a good reason for a bug report, though my impression is that the whole thing will need a redesigned.

    edit

    Or maybe good case of tl;dr... there is really much stuff to read and I'm still mid-coffee ... ;-)

    Cheers Rolf

    ( addicted to the Perl Programming Language)