Add extended binary data conversions
This commit is contained in:
@@ -344,7 +344,7 @@ def process():
|
||||
def get_val(k):
|
||||
if k in units_10: return 10, units_10[k]
|
||||
if k in units_2: return 2, units_2[k]
|
||||
if k == 'bit': return 10, -1 # placeholder relative to bytes, though bits are 1/8 byte. Handling simple bytes here only
|
||||
if k == 'bit': return 2, -3 # bit is 1/8 of a byte (2^-3)
|
||||
return None, None
|
||||
|
||||
b1, e1 = get_val(in1_key)
|
||||
|
||||
Reference in New Issue
Block a user