# New Ticket Created by Brian Duggan # Please include the string: [perl #131717] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=131717 >
$ perl6 -e 'say [+] 1..1e100' 50000000000000001590289110975991817328705368083504703036502630629001320386155388099280879870478387696492219464257418736194801727938851902336988862645587616123664360879667548673664253072454494149672960 This sum is incorrect. Smaller numbers work: $ perl6 -e 'say [+] 1..1e20' 5000000000000000000050000000000000000000 The problems start around 1e23 $ perl6 -e 'say [+] 1..1e22' 50000000000000000000005000000000000000000000 $ perl6 -e 'say [+] 1..1e23' 4999999999999999161139250000000035184367894528 $ perl6 -v This is Rakudo version 2017.04.3 built on MoarVM version 2017.04-53-g66c6dda implementing Perl 6.c.