Skip to content

Instantly share code, notes, and snippets.

Created Dec 3, 2020
What would you like to do?
Arbitrary precision calculator for Go
package main
import (
func RunGomacro(toeval string) float64 {
interp := fast.New()
vals, _ := interp.Eval(toeval)
// for simplicity, only use the first returned value
return vals[0].Float()
func main() {
// go run main.go
// 0.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment