Skip Menu |

This queue is for tickets about the Math-BigInt CPAN distribution.

Report information
The Basics
Id: 104450
Status: rejected
Priority: 0/
Queue: Math-BigInt

People
Owner: Nobody in particular
Requestors: dwheeler [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Math::BigFloat Missing stringify method
Date: Thu, 14 May 2015 13:26:28 -0700
To: bug-math-bigint [...] rt.cpan.org
From: "David E. Wheeler" <dwheeler [...] cpan.org>
The stringify method is mentioned in the Math::BigFloat docs in a few places, but does not seem to exist: $ perl -MMath::BigFloat -E 'say Math::BigFloat->VERSION' 1.9993 $ perl -MMath::BigFloat -E 'say Math::BigFloat->new("10")->stringify' Can't call Math::BigFloat->stringify, not a valid method at -e line 1.
When stringify is mentioned, it does not refer to a method, but to the overloaded "", i.e., what happens when you do "$x" and $x isa Math::BigFloat. The documentation could be clearer, so I am leaving this ticket open.
Subject: Re: [rt.cpan.org #104450] Math::BigFloat Missing stringify method
Date: Mon, 18 May 2015 09:12:57 -0700
To: bug-Math-BigInt [...] rt.cpan.org
From: "David E. Wheeler" <dwheeler [...] cpan.org>
On May 18, 2015, at 4:37 AM, Peter John Acklam via RT <bug-Math-BigInt@rt.cpan.org> wrote: Show quoted text
> When stringify is mentioned, it does not refer to a method, but to the overloaded "", i.e., what happens when you do "$x" and $x isa Math::BigFloat. The documentation could be clearer, so I am leaving this ticket open.
Ah, I see. Is there a method that can be called that does stringification, or does one need to `'' . $num`? A `stringify()` or `as_string()` method would be handy.
Subject: Re: [rt.cpan.org #104450] Math::BigFloat Missing stringify method
Date: Mon, 18 May 2015 13:02:32 -0400
To: bug-Math-BigInt [...] rt.cpan.org
From: "Tels" <nospam-abuse [...] bloodgate.com>
On Mon, May 18, 2015 12:13 pm, David Wheeler via RT wrote: Show quoted text
> Queue: Math-BigInt > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=104450 > > > On May 18, 2015, at 4:37 AM, Peter John Acklam via RT > <bug-Math-BigInt@rt.cpan.org> wrote: >
>> When stringify is mentioned, it does not refer to a method, but to the >> overloaded "", i.e., what happens when you do "$x" and $x isa >> Math::BigFloat. The documentation could be clearer, so I am leaving this >> ticket open.
> > Ah, I see. Is there a method that can be called that does stringification, > or does one need to `'' . $num`? A `stringify()` or `as_string()` method > would be handy.
perl -MMath::BigFloat -wle 'print Math::BigFloat->new(12.123)->bstr()' 12.123 :) All the best, Tels -- http://bloodgate.com/galleries/
There is bstr() and bsstr(). I plan to add more methods, but bug fixing has higher priority at the moment.
This is not a bug, but rather a misunderstanding of the documentation.
Subject: Re: [rt.cpan.org #104450] Math::BigFloat Missing stringify method
Date: Tue, 5 Jan 2016 09:48:10 -0800
To: bug-Math-BigInt [...] rt.cpan.org
From: "David E. Wheeler" <dwheeler [...] cpan.org>
On Jan 5, 2016, at 3:49 AM, Peter John Acklam via RT <bug-Math-BigInt@rt.cpan.org> wrote: Show quoted text
> This is not a bug, but rather a misunderstanding of the documentation.
Or perhaps an opportunity to clarify the documentation. ;-P David