in reply to Small Perl 6 discoveries III, Ints
Observe that $a and $b refer to the same object (they have the same address), while $c and $d are distinct.> my $a = 2e25; my $b = 20e24; $a - $b 0 > (Int($a), $a.WHERE) (20000000000000001811939328 4431024856) > (Int($b), $b.WHERE) (20000000000000001811939328 4431024856) > my $c = Num('2e25'); my $d = Num('20e24'); $c - $d 4294967296 > (Int($c), $c.WHERE) (20000000000000001811939328 4431025568) > (Int($d), $d.WHERE) (19999999999999997516972032 4431025664)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Small Perl 6 discoveries III, Ints
by syphilis (Archbishop) on Sep 29, 2017 at 02:26 UTC | |
by Anonymous Monk on Sep 29, 2017 at 03:02 UTC | |
by syphilis (Archbishop) on Sep 29, 2017 at 05:16 UTC | |
by holli (Abbot) on Sep 29, 2017 at 05:56 UTC | |
by Anonymous Monk on Sep 29, 2017 at 06:05 UTC | |
by Anonymous Monk on Sep 29, 2017 at 05:46 UTC | |
by syphilis (Archbishop) on Sep 29, 2017 at 07:40 UTC |