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

Yes, thanks. We've discovered that the Int is actually working correctly in this case, but the Num is broken.
  • Comment on Re^2: Small Perl 6 discoveries III, Ints

Replies are listed 'Best First'.
Re^3: Small Perl 6 discoveries III, Ints
by holli (Abbot) on Sep 29, 2017 at 06:04 UTC
    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.
      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.