http://qs1969.pair.com?node_id=1116980


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