math.round ViewHelper <vhs:math.round>¶
Math: Round
Rounds off $a which can be either an array-accessible value (Iterator+ArrayAccess || array) or a raw numeric value.
Arguments¶
a¶
- DataType
 mixed
- Required
 false
- Description
 First number for calculation
fail¶
- DataType
 boolean
- Required
 false
- Description
 If TRUE, throws an Exception if argument "a" is not specified and no child content or inline argument is found. Usually okay to use a NULL value (as integer zero).
decimals¶
- DataType
 integer
- Required
 false
- Description
 Number of decimals