aboutsummaryrefslogtreecommitdiff
path: root/ethyl.py
diff options
context:
space:
mode:
Diffstat (limited to 'ethyl.py')
-rw-r--r--ethyl.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/ethyl.py b/ethyl.py
index 2e01409..0d283b4 100644
--- a/ethyl.py
+++ b/ethyl.py
@@ -356,3 +356,5 @@ def put_opt(var, flags, bit, size, item_type=None):
else:
raise Exception('unhandled')
return ret, flags
+def i2f(int):
+ return struct.unpack('>f', struct.pack('>I', int))[0] \ No newline at end of file