Jelix 1.6.40

modifier.round.php

Tags
subpackage

jtpl_plugin

author

Vincent Viaud

copyright

2010 Vincent Viaud

licence

GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html

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.

Return values
float

Search results