diff --git a/worf/src/lib/modes/math.rs b/worf/src/lib/modes/math.rs index 956ad4f..92931c9 100644 --- a/worf/src/lib/modes/math.rs +++ b/worf/src/lib/modes/math.rs @@ -232,7 +232,7 @@ fn calc(input: &str) -> String { }; match eval_expr(&mut tokens) { - Ok(Value::Int(i)) => format!("{i} (0x{i:X})"), + Ok(Value::Int(i)) => format!("{i} (0x{i:X}) (0b{i:b})"), Ok(Value::Float(f)) => format!("{f}"), Err(e) => e, }