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

Re: [perl6] More Inline::Perl5 musings

by duelafn (Vicar)
on Mar 17, 2016 at 16:28 UTC ( #1158122=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Not yet:
    $ perl6 -e 'my num128 $one = Num(1); $one += 1e-30; say $one == 1'
    False
    
  2. or download this
    $ perl6 -e 'my $one = 1; $one += 1e-16; say $one == 1'
    True
    ...
    (Num)
    $ perl6 -e 'my $val = sin(pi/2) + 0.1; my $eleven = 0; $eleven += $val
    + for 1..10; say $eleven == 11'
    False
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2021-04-17 01:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?