Function kalk::parser::eval[][src]

pub fn eval(
    context: &mut Context,
    input: &str,
    precision: u32
) -> Result<Option<KalkNum>, CalcError>
Expand description

Evaluate expressions/declarations and return the answer.

None will be returned if the last statement is a declaration.