laziness, impatience, and hubris | |
PerlMonks |
Re^3: Odd error messageby syphilis (Archbishop) |
on Sep 15, 2015 at 00:13 UTC ( [id://1141992]=note: print w/replies, xml ) | Need Help?? |
input '1.84467440869813e+019' must be a positive integer A rather odd message, given that '1.84467440869813e+019' is a positive integer value. I think next_prime() must be looking for an IV or UV, but the value about which it complains is too large to fit into an IV/UV and has been converted to an NV (double precision float). I can't quite reconcile the error message you've provided with the Math::Prime::Util (version 0.53) source. Perhaps I was looking in the wrong place, or perhaps I was looking at the wrong version. If you're not already using 0.53, consider upgrading to it - it might accept such values (dunno). Also note that, although your script loads the Math::BigFloat module, I can't see any Math::BigFloats being used anywhere in your code. And I don't think next_prime() would accept a Math::BigFloat input, anyway - though I haven't tested. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|