Documentation
¶
Overview ¶
Package parsefloat converts a string in go expression format into a reverse polish notation representation of its mathematical transformation, as long as it only has float64's, functions of float64 from the math package, and predefined identifiers.
Doing this in RPN might be kind of dumb. There may be a better way of evaluating go expressions.
Note that only functions of float64s and float64 literals are allowed, with the expection of << and >>, because while those functions can be applied to float64's, it will panic if the amount to shift is not an integer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Expression ¶
Expression is an expression containing only float64s and functions of float64s that can be evaluated given a set of variables.