add sub and super stript to number to string

This commit is contained in:
2022-11-22 18:24:38 +00:00
parent 7b09133438
commit c30fd36580
2 changed files with 51 additions and 14 deletions

View File

@@ -5,12 +5,6 @@ import (
)
func translate(code string) {
a := createNumber(7, 1)
b, worked := stringToNumber("1e-1")
if worked {
output := newNumber().Mul(a, b)
output.Add(output, a)
output.Sub(output, a)
fmt.Println(numberToString(output, true))
}
output, _ := newNumber().SetString("3.1415")
fmt.Println(numberToString(output, 0))
}