working on number type

This commit is contained in:
2022-11-22 17:50:23 +00:00
parent 1e091437fd
commit 7b09133438
5 changed files with 50 additions and 1 deletions

16
src/translate.go Normal file
View File

@@ -0,0 +1,16 @@
package main
import (
"fmt"
)
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))
}
}