Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: [Raku] Arcane treatment of doubles and rationals

by holli (Abbot)
on Apr 03, 2021 at 22:41 UTC ( #11130786=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ say 3602879701896397/36028797018963968 == 0.100000000000000006;
    True
    $ say 10000000000000001/100000000000000000 == 0.10000000000000001 == 0
    +.10000000000000001e0 == 0.1 + 1e-18;
    True
    
  2. or download this
    $ say 3602879701896397/36028797018963968 =~= 0.10000000000000001;
    True
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (6)
As of 2021-10-20 09:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (79 votes). Check out past polls.

    Notices?