Skip Menu |
 

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

Report information
The Basics
Id: 111907
Status: resolved
Priority: 0/
Queue: Math-BigInt

People
Owner: Nobody in particular
Requestors: keithsthompson [...] gmail.com
Cc:
AdminCc:

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



CC: Keith Thompson <Keith.S.Thompson [...] gmail.com>
Subject: Small glitch in documentation
Date: Tue, 9 Feb 2016 16:16:16 -0800
To: bug-Math-BigInt [...] rt.cpan.org
From: Keith Thompson <keithsthompson [...] gmail.com>
Download (untitled) / with headers
text/plain 754b
The documentation for Math::BigInt has the following example: $x = Math::BigInt->new(12345678890123456789); # bad $x = Math::BigInt->new('12345678901234567890'); # good This is quite correct, but the example would be better if both lines used the same value. The "bad" example doubles the first 8 and is missing the trailing 0. And on a 64-bit system, 12345678901234567890 doesn't lose precision. I suggest adding more digits. I'm also tempted to suggest inserting a space after the "(" so the digits line up, but I'll leave that to your judgement. Corrected example: $x = Math::BigInt->new( 123456789012345678901234567890 ); # bad $x = Math::BigInt->new('123456789012345678901234567890'); # good -- Keith Thompson <Keith.S.Thompson@gmail.com>
Download (untitled) / with headers
text/html 16.2k

Message body is not shown because it is too large.

Fixed in v1.999718


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.