note
moritz
<blockquote>Clearly, this is just a prototypical example of why you can never (in any programming language other than COBOL) test a fractional number for “exact equality.”</blockquote>
<p>Only if by "fractional number" you actually mean floating-point number. It works fine with actual fractional numbers:</p>
<code>
$ perl6 -e 'say 10 + 14.4 - 10 == 14.4'
True
</code>
<p>(Perl 6 stores those as actual fractions, and does exact math with them; you only get floating points if the fractions overflow, or if you request them with the scientific notation 14.4e0).</p>
<!-- Node text goes above. Div tags should contain sig only -->
<div class="pmsig"><div class="pmsig-616540">
[http://perl6.org/|Perl 6 - the future is here, just unevenly distributed]
</div></div>
1083247
1083255