Numeric Functions¶
- fn.zeropad: Left pad a given number with zeros up to a given pad number.
- fn.minval: For integers, return the minimum value of a provided list.
- fn.maxval: For integers, return the maximum value of a provided list.
- fn.add: Add two integers.
- fn.subtract: Subtract two integers.
- fn.multiply: Multiply two integers.
- fn.divide: Divide two integers.
Examples:
Example | Output |
---|---|
{{fn.zeropad 123,6}}
|
000123
|
{{fn.minval 2,3,130,1,30}}
|
1
|
{{fn.maxval 2,3,130,1,30}}
|
130
|
{{fn.add 2, 3}}
|
5
|
{{fn.subtract 2, 3}}
|
-1
|
{{fn.multiply 2, 3}}
|
6
|
{{fn.divide 20, 10}}
|
2
|