浮點數轉化8字節的16進制

百度進制轉化工具
https://www.baidu.com/s?wd=%E8%BF%9B%E5%88%B6%E8%BD%AC%E6%8D%A2%E5%99%A8&rsv_spt=1&rsv_iqid=0x9933a4e5000011a9&issp=1&f=3&rsv_bp=1&rsv_idx=2&ie=utf-8&tn=baiduhome_pg&rsv_enter=0&oq=%E8%BF%9B%E5%88%B6%E8%BD%AC%E6%8D%A2%E5%99%A8&rsv_t=480eL8UnUGLjnSLYnGM1ZSxnf4C60uQ6zuwjcavJb0miAOqriBjEF4Lq2SDTIdIQZLn5&rsv_pq=e44655f70001fd52&prefixsug=%E8%BF%9B%E5%88%B6%E8%BD%AC%E6%8D%A2%E5%99%A8&rsp=1
1.點擊進入應用
float  f =  120 .25f;
System.out.println(Integer.toHexString(Float.floatToIntBits(f)));


Float f = 1.23f;
System.out.println(Integer.toHexString(Float.floatToIntBits(f)));
System.out.println(Float.intBitsToFloat(Integer.parseInt("3F9D70A3", 16)));

你可能感兴趣的:(java)