Kahan summation: Difference between revisions
m
→{{header|Perl 6}}: reduce the echo
Thundergnat (talk | contribs) (→{{header|Perl 6}}: Add Perl 6 example) |
Thundergnat (talk | contribs) m (→{{header|Perl 6}}: reduce the echo) |
||
Line 1,040:
=={{header|Perl 6}}==
{{trans|Python}}
Perl 6 does not offer a fixed precision decimal. It ''does
<lang perl6>constant ε = (1e0, */2e0 … *+1e0==1e0)[*-1];
|