modifier.round.php
Tags
Table of Contents
- jtpl_modifier_common_round() : float
- Modifier plugin : Rounds a float
Functions
jtpl_modifier_common_round()
Modifier plugin : Rounds a float
jtpl_modifier_common_round(float $val, int $precision) : float
{$var|round:2}
Parameters
- $val : float
-
the value to round
- $precision : int
-
The number of decimal digits to round to.