Hack for large exponents

This commit is contained in:
2023-08-03 07:47:07 -07:00
parent 165dddb714
commit 7cb9dbf2e0
2 changed files with 4 additions and 4 deletions

View File

@ -209,11 +209,11 @@ impl Operator {
let q = &args[1];
if q.is_unitless_integer() {
if q.is_unitless_integer() && !q.to_string().contains("e") {
// Write integer powers as a superscript
let mut b = String::new();
for c in q.to_string().chars() {
b.push( match c {
b.push(match c {
'-' => '⁻',
'0' => '⁰',
'1' => '¹',