7 lines
85 B
Python
7 lines
85 B
Python
import struct
|
|
|
|
|
|
def float_to_hex(f):
|
|
b = struct.pack(">f", f)
|
|
return b.hex()
|