sanchahar / speedcrunch

Automatically exported from code.google.com/p/speedcrunch
1 stars 0 forks source link

convert hex to floating point equivalent #564

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
similar to feature request 505 but in the opposite direction. I'd like to be 
able to take a 32 bit hex or decimal number from my embedded program, e.g. 
0x40066666 and have speedcrunch return the floating point value 2.1.

This is trivial using unions in C/C++. See 
http://www.h-schmidt.net/FloatConverter/IEEE754.html for java & javascript 
programs that do conversions to/from float/hex/decimal/.

Original issue reported on code.google.com by wvlui...@gmail.com on 21 Jul 2015 at 10:16

GoogleCodeExporter commented 8 years ago

Original comment by helder.p...@gmail.com on 21 Jul 2015 at 10:21