Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^2: 64-bit division anomolies (Solved.)

by BrowserUk (Patriarch)
on Feb 17, 2015 at 12:44 UTC ( #1116980=note: print w/replies, xml ) Need Help??

in reply to Re: 64-bit division anomolies (Solved.)
in thread 64-bit division anomolies (Solved.)

Neat. Thankyou.

However, despite my initial misgivings of using a Math::* module with an overload interface -- mostly based on my bad experiences with using Math::BigInt way back when -- I was pleasantly surprised to discover that modifying the routine where the problem occurred from:

sub Q2b36 { my $n = shift; ...


sub Q2b36 { my $n = uint64( shift ); ...

Fixed all the problems with no other changes required. About as simple as a work around for Perl's deficiencies could get.

Once again. Thank you for Math::Int64 & Math::Int128.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1116980]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2023-05-31 15:13 GMT
Find Nodes?
    Voting Booth?

    No recent polls found