edwyr has asked for the wisdom of the Perl Monks concerning the following question:
I know floats and doubles are IEEE. How do I convert the float (four bytes) to hex. I need the next for a project I'm working on where numbers are not convenient.
(i.e. 1 / 7 = 0.142857142857143 = 0x6FDF1234 ($whatever))
Mike
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Float/double to hex?
by BrowserUk (Patriarch) on Feb 18, 2013 at 01:27 UTC | |
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 | |
Re: Float/double to hex?
by Anonymous Monk on Feb 18, 2013 at 00:45 UTC | |
Re: Float/double to hex?
by Athanasius (Archbishop) on Feb 19, 2013 at 04:53 UTC | |
by Anonymous Monk on Feb 19, 2013 at 19:53 UTC | |
by Anonymous Monk on Feb 19, 2013 at 21:18 UTC | |
by edwyr (Sexton) on Feb 19, 2013 at 22:03 UTC |
Back to
Seekers of Perl Wisdom