- package com.sondon.dev_soceket.test;
-
- public class Test {
- public static void main(String[] args) {
- String s="3E1E9E9F";
- Float value = Float.intBitsToFloat(Integer.valueOf(s.trim(), 16));
- System.out.println(value);
- Float f=0.15490197f;
- System.out.println(Integer.toHexString(Float.floatToIntBits(f)));
- }
- }
- FROM:http://blog.csdn.net/caiwenfeng_for_23/article/details/46816683
float转16进制, 16进制转float(java )
最新推荐文章于 2023-10-18 15:36:46 发布