Function rubble_templates::std_fun::math::modulo_function[][src]

pub fn modulo_function(
    parameters: &[String],
    _context: &mut Context
) -> Result<String, SyntaxError>

Calculates the remainder (modulo). If any of the parameters is not convertible to a number, then an error will be emitted with the invalid value.

Eg.

mod 7 4

Expected output:

3