Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Too big?

by danaj (Friar)
on Jan 02, 2016 at 09:50 UTC ( #1151678=note: print w/replies, xml ) Need Help??


in reply to Too big?

primorial returns either a native int or a Math::BigInt object, depending on size. Math::GMPz's new() doesn't like Math::BigInt objects.

One workaround is adding "". before primorial, which will force it into a string regardless of the type. E.g. say Math::GMPz->new("".primorial(53));

Replies are listed 'Best First'.
Re^2: Too big?
by robert44444uk (Acolyte) on Jan 02, 2016 at 10:48 UTC
    Many thanks danaj - fix works!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2022-01-24 11:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:












    Results (64 votes). Check out past polls.

    Notices?