Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^3: [Raku] Arcane treatment of doubles and rationals

by syphilis (Archbishop)
on Apr 05, 2021 at 05:18 UTC ( [id://11130828]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ raku -e 'my $r = 3602879701896397/36028797018963968; say $r.raku; sa
    +y $r.raku == $r;'
    0.1000000000000000055511151231257827021181583404541015625
    True
    
  2. or download this
    $ perl -le 'printf "%.800g\n", 0.1'
    0.1000000000000000055511151231257827021181583404541015625
    $
    
  3. or download this
    $ raku -e 'printf "%.800g\n", 0.1e0'
    NaN
    $
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-28 18:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found