Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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

by BrowserUk (Patriarch)
on Feb 17, 2015 at 12:44 UTC ( [id://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; ...

to:

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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-19 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found