http://www.perlmonks.org?node_id=11123124


in reply to Re^2: int() function
in thread int() function

Yes, Raku has a Rat type which stores (and normalizes) numerator and denominator. Legend has it they only did that so they can have a .nude method (which returns a Pair).


holli

You can lead your users to water, but alas, you cannot drown them.

Replies are listed 'Best First'.
Re^4: int() function
by syphilis (Bishop) on Oct 25, 2020 at 01:10 UTC
    I find it confusing that a bareword of 1.15 can be assigned exactly as the rational 115/100 rather than as the approximated double.
    But I guess that one would adapt quickly enough to the change of mindset, if one had to.

    Cheers,
    Rob