Numeric Functions ----------------- .. index:: Macro function;fn.is_int * *fn.is_int*: Return true or false if the parameter is an integer or not. .. index:: Macro function;fn.zeropad * *fn.zeropad*: Left pad a given number with zeros up to a given pad number. +-------------------------+-----------+ | Example | Output | +=========================+===========+ | | | | :: | :: | | | | | {{fn.zeropad 123,6}} | 000123 | | | | +-------------------------+-----------+ .. index:: Macro function;fn.minval * *fn.minval*: For integers, return the minimum value of a provided list. +-------------------------------+--------+ | Example | Output | +===============================+========+ | | | | :: | :: | | | | | {{fn.minval 2,3,130,1,30}} | 1 | | | | +-------------------------------+--------+ .. index:: Macro function;fn.maxval * *fn.maxval*: For integers, return the maximum value of a provided list. +-------------------------------+--------+ | Example | Output | +===============================+========+ | | | | :: | :: | | | | | {{fn.maxval 2,3,130,1,30}} | 130 | | | | +-------------------------------+--------+ .. index:: Macro function;fn.add * *fn.add*: Add two integers. +-------------------+--------+ | Example | Output | +===================+========+ | | | | :: | :: | | | | | {{fn.add 2,3}} | 5 | | | | +-------------------+--------+ .. index:: Macro function;fn.subtract * *fn.subtract*: Subtract two integers. +-------------------------+--------+ | Example | Output | +=========================+========+ | | | | :: | :: | | | | | {{fn.subtract 2,3}} | -1 | | | | +-------------------------+--------+ .. index:: Macro function;fn.multiply * *fn.multiply*: Multiply two integers. +-------------------------+--------+ | Example | Output | +=========================+========+ | | | | :: | :: | | | | | {{fn.multiply 2,3}} | 6 | | | | +-------------------------+--------+ .. index:: Macro function;fn.divide * *fn.divide*: Divide two integers. +-------------------------+--------+ | Example | Output | +=========================+========+ | | | | :: | :: | | | | | {{fn.divide 20,10}} | 2 | | | | +-------------------------+--------+ .. |VOSS Automate| replace:: VOSS Automate .. |Unified CM| replace:: Unified CM