update on various python tools

This commit is contained in:
local
2026-01-19 15:21:44 +00:00
parent 31684ecded
commit 7891956d52
7 changed files with 164 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
import struct
def float_bin(number):
return bin(struct.unpack('<I', struct.pack('<f', number))[0])
def main():
print(float_bin(5.75))
if __name__ == "__main__":
main()