Kahan summation: Difference between revisions

m
→‎{{header|Raku}}: Fix-up some Perl6 -> Raku references
m (added another name for the Kahan summation algorithm.)
m (→‎{{header|Raku}}: Fix-up some Perl6 -> Raku references)
Line 1,911:
(formerly Perl 6)
{{trans|Python}}
Perl 6Raku does not offer a fixed precision decimal. It ''does'' have IEEE 754 floating point numbers so let's try implementing the floating point option as shown in Python. Need to explicitly specify scientific notation numbers to force floating point Nums.
 
<lang perl6>constant ε = (1e0, */2e0 … *+1e0==1e0)[*-1];
10,333

edits