http://www.perlmonks.org?node_id=1019249

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