could you double-check the nvsize on your "long double" version?
Yes, it's the 80-bit extended precision long double - 1 bit for the sign, 15 bits for the exponent, and 64 bits for the mantissa.
If it were the IEEE-754 long double, then the one-liner would have returned 894, as for "double" and "__float128".
If you want to find out which of the various "long double" formats is being honored by your perl, then (assuming perl is not more than about 10 years old) you can run
perl -V:longdblkind, which will return a value in the range
-1..9.
The meaning of the returned value is explained in the Config docs:
"longdblkind"
From d_longdbl.U:
This variable, if defined, encodes the type of a long double: 0 =
double, 1 = "IEEE" 754 128-bit little endian, 2 = "IEEE" 754 128-bit
big endian, 3 = x86 80-bit little endian, 4 = x86 80-bit big endian,
5 = double-double 128-bit little endian, 6 = double-double 128-bit
big endian, 7 = 128-bit mixed-endian double-double (64-bit LEs in
"BE"), 8 = 128-bit mixed-endian double-double (64-bit BEs in "LE"),
9 = 128-bit "PDP"-style mixed-endian long doubles, -1 = unknown format
+.
Cheers,
Rob
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.