Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^6: Behaviour of int() unexpected

by syphilis (Archbishop)
on Mar 11, 2025 at 10:06 UTC ( [id://11164244]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Behaviour of int() unexpected
in thread Behaviour of int() unexpected

Yes, Raku is one such language.
Perl also provides this through the Math::BigRat module, and also the bigrat pragma:
> >perl -Mbigrat -le "$x = 4; print $x/6;" 2/3
Math::GMPq is another module that provides for rational arithmetic.

Cheers,
Rob

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2026-04-12 13:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.