Function evalexpr::eval_number[][src]

pub fn eval_number(string: &str) -> EvalexprResult<FloatType>
Expand description

Evaluate the given expression string into a float. If the result of the expression is an integer, it is silently converted into a float.

See the crate doc for more examples and explanations of the expression format.