feat: prettyify scientific notation
this way it's also typst-compatible!
This commit is contained in:
parent
46c697234c
commit
3c20174ecb
1 changed files with 2 additions and 1 deletions
|
|
@ -34,7 +34,8 @@ pub fn pretty_eval(mut input: String) -> Result<String, Error> {
|
||||||
""
|
""
|
||||||
},
|
},
|
||||||
if should_add_back_backslash { " \\" } else { "" }
|
if should_add_back_backslash { " \\" } else { "" }
|
||||||
))
|
)
|
||||||
|
.replace('e', " * 10^"))
|
||||||
}
|
}
|
||||||
#[test]
|
#[test]
|
||||||
fn test_character_readdition() {
|
fn test_character_readdition() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue