feat: prettyify scientific notation

this way it's also typst-compatible!
This commit is contained in:
electria 2026-09-30 20:10:03 -07:00
commit 3c20174ecb
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -34,7 +34,8 @@ pub fn pretty_eval(mut input: String) -> Result<String, Error> {
""
},
if should_add_back_backslash { " \\" } else { "" }
))
)
.replace('e', " * 10^"))
}
#[test]
fn test_character_readdition() {