可能重複:
How to convert hex string to float in Java?如何將十六進制值轉換爲java中的float值?
我想十六進制值轉換成相當於Java中的浮點值。
Ex.What is the output of 000C (hexa value) ?
在此先感謝..
可能重複:
How to convert hex string to float in Java?如何將十六進制值轉換爲java中的float值?
我想十六進制值轉換成相當於Java中的浮點值。
Ex.What is the output of 000C (hexa value) ?
在此先感謝..
請檢查此:stackoverflow.com/questions/1071904/how-to-convert-hex-string-to-float-in-java – xyz
你需要說什麼輸入值應該是。 '000C'是一個整數嗎?浮點的按位表示? IEE格式? 4個十六進制數字只給出2個字節,這對於IEE 32位浮點數的按位表示來說太小了。 –
是你的十六進制字符串對象嗎? – Kshitij