in reply to Re^2: Small Perl 6 discoveries III, Ints
in thread Small Perl 6 discoveries III, Ints

It's not broken. It's just a floating point number.


holli

You can lead your users to water, but alas, you cannot drown them.

Replies are listed 'Best First'.
Re^4: Small Perl 6 discoveries III, Ints
by Anonymous Monk on Sep 29, 2017 at 06:08 UTC
    If you take the simplistic point of view that "floating point numbers just give the wrong answer sometimes," you might come to that conclusion. But floating point numbers actually follow very specific rules, which are being broken here.