Function evalexpr::eval_number_with_context_mut
source · [−]pub fn eval_number_with_context_mut<C: ContextWithMutableVariables>(
string: &str,
context: &mut C
) -> EvalexprResult<FloatType>
Expand description
Evaluate the given expression string into a float with the given mutable context. 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.