Add extended binary data conversions

This commit is contained in:
Codex Agent
2026-03-08 08:47:48 +00:00
parent 41e8735720
commit acd5a0e2af
3 changed files with 133 additions and 53 deletions

View File

@@ -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)