mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
working on number type
This commit is contained in:
16
src/translate.go
Normal file
16
src/translate.go
Normal 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))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user