From 3c20174ecb952d359b0b4a342e7daa8187eb6118 Mon Sep 17 00:00:00 2001 From: electria Date: Wed, 30 Sep 2026 20:10:03 -0700 Subject: [PATCH] feat: prettyify scientific notation this way it's also typst-compatible! --- src/formatting.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/formatting.rs b/src/formatting.rs index 5292282..fa18bd2 100644 --- a/src/formatting.rs +++ b/src/formatting.rs @@ -34,7 +34,8 @@ pub fn pretty_eval(mut input: String) -> Result { "" }, if should_add_back_backslash { " \\" } else { "" } - )) + ) + .replace('e', " * 10^")) } #[test] fn test_character_readdition() {