Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: bignum usage?

by ikegami (Patriarch)
on Oct 17, 2023 at 19:21 UTC ( [id://11155012]=note: print w/replies, xml ) Need Help??


in reply to bignum usage?

Replace

use Math::BigRat; # Useless use bignum; # Uses M::BigInt and M::BitFloat

with

use bignum upgrade => "Math::BigRat";
or
use bigrat;

I don't think they're equivalent -- the former initially creates M::BigInt objects and switches to M::BigRat when necessary, but I think the latter uses M::BitRat objects from the start -- but they have the same result here.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-05-23 17:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found