[−][src]Function evalexpr::eval_number
pub fn eval_number(string: &str) -> EvalexprResult<FloatType>
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.