728x90 Float1 [Python] Hex <-> Float, Double, Ascii, Decimal 변환 python 3.7 기준 - 소스 import struct import numpy as np import binascii #float #0x42161168 #37.517 # double #0x4042c22d0e560419 #37.517 hex_encoded = "42161168" hex_encoded2 = "4042c22d0e560419" def float16_to_hex(f): return hex(struct.unpack(' 2021. 5. 12. 이전 1 다음 728x90