Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: [Raku] Arcane treatment of doubles and rationals

by syphilis (Bishop)
on Apr 04, 2021 at 13:26 UTC ( #11130804=note: print w/replies, xml ) Need Help??


in reply to Re^3: [Raku] Arcane treatment of doubles and rationals
in thread [Raku] Arcane treatment of doubles and rationals

I'd consider this a bug

Yes, I think there's something that's definitely not right.
For a start, there's never any need to assign an 18-significant-digit (decimal) value to a double.
Whatever value is assigned to a double by the 18-siginificant-digit 0.100000000000000006 will also be assigned by the 17-significant-digit 0.10000000000000001.

As I said (in the reply to myself that I posted shortly after your post), I will raise the issues with them.

Cheers,
Rob
  • Comment on Re^4: [Raku] Arcane treatment of doubles and rationals

Replies are listed 'Best First'.
Re^5: [Raku] Arcane treatment of doubles and rationals
by holli (Abbot) on Apr 04, 2021 at 13:34 UTC
    there's never any need to assign an 18-significant-digit (decimal) value to a double
    You are forcing that by using an exponent.


    holli

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11130804]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (None)
    As of 2021-10-16 00:30 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?
      My first memorable Perl project was:







      Results (69 votes). Check out past polls.

      Notices?