mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
add sub and super stript to number to string
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user