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

Hey Rob,

Thanks for the reply. Both versions of perl report nvsize at 8. But, I have no clue what the significance of this value is. Could you please explain?

Thanks,

Lars

Replies are listed 'Best First'.
Re^5: Windows / Linux puzzler
by syphilis (Archbishop) on Mar 24, 2020 at 08:54 UTC
    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