Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^5: Windows / Linux puzzler

by syphilis (Bishop)
on Mar 24, 2020 at 08:54 UTC ( #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.)


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (11)
As of 2020-05-26 13:38 GMT
Find Nodes?
    Voting Booth?
    If programming languages were movie genres, Perl would be:

    Results (150 votes). Check out past polls.