S Steini1980 Active Member Licensed User Longtime User Apr 1, 2016 #1 Hi, how can I use this Method: java.lang.Float.intBitsToFloat in B4A? Could someone give me an Example? I have an Hex Code as String (e.g. "40670B0F") and need the Float value (in this case 3,61005). I get the correct Value with this IEE 754 online Converter
Hi, how can I use this Method: java.lang.Float.intBitsToFloat in B4A? Could someone give me an Example? I have an Hex Code as String (e.g. "40670B0F") and need the Float value (in this case 3,61005). I get the correct Value with this IEE 754 online Converter
Erel B4X founder Staff member Licensed User Longtime User Apr 3, 2016 #2 B4X: Dim bc As ByteConverter Log(bc.FloatsFromBytes(bc.HexToBytes("40670B0F"))(0)) Upvote 0
S Steini1980 Active Member Licensed User Longtime User Apr 3, 2016 #3 Perfect! Thank you Erel. I have also tried with Byteconverter before, but never got the correct result. Upvote 0
Perfect! Thank you Erel. I have also tried with Byteconverter before, but never got the correct result.