Numeric Functions

  • fn.is_int: Return true or false if the parameter is an integer or not.

  • fn.zeropad: Left pad a given number with zeros up to a given pad number.

    Example

    Output

    {{fn.zeropad 123,6}}
    
    000123
    
  • fn.minval: For integers, return the minimum value of a provided list.

    Example

    Output

    {{fn.minval 2,3,130,1,30}}
    
    1
    
  • fn.maxval: For integers, return the maximum value of a provided list.

    Example

    Output

    {{fn.maxval 2,3,130,1,30}}
    
    130
    
  • fn.add: Add two integers.

    Example

    Output

    {{fn.add 2,3}}
    
    5
    
  • fn.subtract: Subtract two integers.

    Example

    Output

    {{fn.subtract 2,3}}
    
    -1
    
  • fn.multiply: Multiply two integers.

    Example

    Output

    {{fn.multiply 2,3}}
    
    6
    
  • fn.divide: Divide two integers.

    Example

    Output

    {{fn.divide 20,10}}
    
    2