in reply to Float/double to hex?
1 / 7 = 0.142857142857143 = 0x6FDF1234
That hex value doesn't correspond to either a float or double in IEEE format?
print unpack 'h*', pack 'f', 1/7;; 529421e3 print unpack 'h*', pack 'd', 1/7;; 2942942942942cf3
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.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Float/double to hex?
by Anonymous Monk on Feb 18, 2013 at 01:35 UTC | |
by BrowserUk (Patriarch) on Feb 18, 2013 at 01:56 UTC | |
by Anonymous Monk on Feb 18, 2013 at 01:37 UTC | |
by Mr. Muskrat (Canon) on Feb 18, 2013 at 18:21 UTC |
In Section
Seekers of Perl Wisdom