Function math_parse::math_parse_float
source · pub fn math_parse_float(
expression: &str,
variable_map: Option<&HashMap<String, String>>
) -> Result<f64, MathParseErrors>Expand description
Parse the expression given and apply the optional map of variable that maps variables to math expressions. Return a floating point number. If the result is an integer, convert it as a floating point number.