|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re^8: Introspection into floats/NVby LanX (Saint) |
| on Jun 05, 2025 at 13:44 UTC ( [id://11165271]=note: print w/replies, xml ) | Need Help?? |
|
I'm not a C programmer, So let me restate my question, provided perl is compiled with other settings. (FP32,FP64,FP80,FP128, etc?) Will F return another bitlength? ¹ Citing the docs
What I read - and can't test² - is that F will produce f,d or D according to the setting. D will fail* if not internally available, but f and d will coerce° accordingly. Unfortunately, there is no mention of the FP80³ format you mentioned in another thread. If I'm wrong, don't you think perldocs of packtut and pack should clarify this?
update 11) From our previous discussion: > > > There's no way to know if F is an IEEE double or not. > > I'm confused, I'm expecting F to return 32, 64, 80 or 128 bits (at least) IEEE double means FP64, if F returns different bit length it's possible to tell that it's not a FP64. It might be much trickier to tell if its according to IEEE though (i.e. position and format of sign and exponent)
update 2²) well lets try *) wrong °)seems to be true
Cheers Rolf
³) According to Wikipedia is "64-extended" only loosely defined as having 79+ bits
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||