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

Re^6: Why am I losing accuracy?

by vr (Curate)
on Jan 08, 2020 at 23:46 UTC ( [id://11111211]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Why am I losing accuracy?
in thread Why am I losing accuracy?

Perhaps, misunderstanding began with

I think you need to set the precision to 1

which maybe stemmed from

p or precision ... 0 or 1 mean round to integer

which (i.e., Perl core module documentation) is wrong. "0" is "round to integer". "1" is not.

Allowing "accuracy" and "precision" for extended integers (through a pragma i.e. infecting everything which interacts with source code literals!) is, simply, very evil and can lead to bizarre infinite loops, as shown, but it's not a bug in itself, because documented (but should never be used (?))

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-19 04:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found