Perl Monk, Perl Meditation | |
PerlMonks |
Re: NaN outputby BrowserUk (Patriarch) |
on Mar 05, 2014 at 16:49 UTC ( [id://1077107]=note: print w/replies, xml ) | Need Help?? |
Are you sure that you are not encountering an endian problem? For example, the 4 byte value 0x7ff00000, decoded as a big-endian float produces a valid number:
But treated as a little-endian value it produces NaN:
Just a thought. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|