Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^5: Windows / Linux puzzler

by syphilis (Archbishop)
on Mar 24, 2020 at 08:54 UTC ( [id://11114596]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Windows / Linux puzzler
in thread Windows / Linux puzzler

Could you please explain?

"NV" is just the term used for perl's floating point type.
Depending upon how perl was built, it could be either a 'double', a 'long double', or a '__float128'.
$Config{nvtype} tells you which type the NV is.
$Config{nvsize} tells you how many bytes are allocated to that particular type.

If nvtype and nvsize don't change from one machine to the other (as is the case with your machines) then arithmetical operations should produce identical results.
If the configurations match (wrt nvsize and nvtype) and identical arithmetic operations produce different results, then at least one of those machines has a bug.
Such bugs do exist - but they're relatively rare. (On perl-5.30.0 they're even rarer.)

Cheers,
Rob

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (7)
As of 2024-04-18 17:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found