|There's more than one way to do things|
Re^4: Reasons for Using Perl 6by syphilis (Chancellor)
|on Jan 02, 2018 at 13:10 UTC||Need Help??|
Floating-point arithmetic is flawed and sucks
I disagree with that on both counts.
To me, it's incredibly na´ve to complain about a base 2 approximation of 0.3 minus a base 2 approximation of 0.2 minus a base 2 approximation of 0.1 resulting in a minute non-zero value.
I've nothing against rational arithmetic - but note that when you've done your rational computations and you end up with a result of 132511/43, the first thing you're going to do (in order to gauge the magnitude of that value) is to convert it to an approximate floating point value.
And I would think (untested) that perl5's Math::GMPq module provides better rational arithmetic than perl6 ever will.
I can't see perl6's arithmetic model ever being a reason for me to use perl6. (I'd rather stay with perl5 - and do the arithmetic in XS space if accuracy is important.)