Skip Menu |

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

Report information
The Basics
Id: 132467
Status: new
Priority: 0/
Queue: Math-BigInt

Owner: Nobody in particular
Requestors: cpan-questions [...]

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

CC: arudd [...]
Subject: [cpan-questions #36236] Fwd: Bug with BigInt?
Date: Fri, 01 May 2020 08:36:32 -0400
To: bug-Math-BigInt [...]
From: cpan-questions [...]
Forwarding to the Math::BigInt bug queue.
Subject: Bug with BigInt?
Date: Fri, 1 May 2020 09:59:59 +0200
To: "rt-cpan-admin [...]" <rt-cpan-admin [...]>
From: "Anthony Rudd" <arudd [...]>
Download (untitled) / with headers
text/plain 414b
Hi There seems to be a bug with BigInt, or am I doing something wrong? Thanks Tony The relevant code: use Math::BigInt; Math::BigInt->accuracy(40); $it = Math::BigInt->new(0); $rem = Math::BigInt->new(0); $it = $t; $rem = $it%97; $n = length($it); print "it $n $it\n"; print "rem $rem\n"; The log: it 24 100100100987654321131400 rem 66 The remainder should be 69: Sent from Mail for Windows 10

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

Please report any issues with to