Function math_parse::math_parse_int

source ·
pub fn math_parse_int(
    expression: &str,
    variable_map: Option<&HashMap<String, String>>
) -> Result<i64, MathParseErrors>
Expand description

Parse the expression given and apply the optional map of variable that maps variables to math expressions. Return an integer or error out if the result is a floating point number.