in reply to Re: Unexpected behavior of a method in BigFloat
in thread Unexpected behavior of a method in BigFloat

Now you've got me curious... The POD for Math::BigFloat talks of this method. In fact, I even went to the author's Website for more information. He states that he added as_int() for v1.68 of this module.

So my questions are, first, is this something that might be considered a "bug", since the documentation appears to conflict with the actual behavior of the method? IOW, should I perhaps report this to the author?

Also important for my sanity, though, is how could I have avoided knocking my head against a wall? Such as, how did you know about as_number()? If I had known where to look, I could have saved myself hours of going crazy over this...

  • Comment on Re^2: Unexpected behavior of a method in BigFloat

Replies are listed 'Best First'.
Re^3: Unexpected behavior of a method in BigFloat
by Zaxo (Archbishop) on Nov 03, 2005 at 01:03 UTC

    Ah, that explains it, my version is 1.50.

    I found the problem in that version by running perldoc -m Math::BigFloat, giving the source listing. My pager is less so I'm able to search text by typing "/as_int". That found only the instance in pod. Finding where the as_* methods are by the same method, I noticed as_number and saw from its definition that it was what we wanted.

    Since it's been remedied in recent versions, I don't think it's worth bothering the author with it.

    After Compline,
    Zaxo