Numeric Functions ----------------- .. index:: Macro function;fn.zeropad * *fn.zeropad*: Left pad a given number with zeros up to a given pad number. .. index:: Macro function;fn.minval * *fn.minval*: For integers, return the minimum value of a provided list. .. index:: Macro function;fn.maxval * *fn.maxval*: For integers, return the maximum value of a provided list. .. index:: Macro function;fn.add * *fn.add*: Add two integers. .. index:: Macro function;fn.subtract * *fn.subtract*: Subtract two integers. .. index:: Macro function;fn.multiply * *fn.multiply*: Multiply two integers. .. index:: Macro function;fn.divide * *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 | | | | +-----------------------------------------+-----------------------------+ .. |VOSS-4-UC| replace:: VOSS-4-UC .. |Unified CM| replace:: Unified CM