Skip to content

button-chen/expr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

golang implements simple mathematical expression calculation

Example:

import (
	"fmt"

	"github.com/button-chen/expr/expr"
)

func main() {
	v := expr.Eval("-1.5+(3.2*2)/2*(-3)-10.7*3+1e-5")
	fmt.Println("result: ", v)
}

// output: result: -43.19998999999999

About

Golang implements simple mathematical expression calculation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages