Jelix 1.6.40

modifier.number_format.php

jTpl plugin that wraps PHP number_format function

Tags
subpackage

jtpl_plugin

author

Julien Issler

contributor

Mickael Fradin

copyright

2008-2010 Julien Issler, 2009 Mickael Fradin

link
http://www.jelix.org
licence

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

since
1.1

Table of Contents

jtpl_modifier_common_number_format()  : string
NumberFormat plugin for jTpl that wraps PHP number_format function

Functions

jtpl_modifier_common_number_format()

NumberFormat plugin for jTpl that wraps PHP number_format function

jtpl_modifier_common_number_format(float $number, int $decimals[, string $dec_point = false ][, string $thousands_sep = false ]) : string
Parameters
$number : float

the number to format

$decimals : int

the number of decimals to return

$dec_point : string = false

the separator string for the decimals

$thousands_sep : string = false

the separator string for the thousands

Return values
string

Search results