Location: PHPKode > projects > Open Power Template > tests/Opt/function/number_2.txt
Testing the number() function in the aggregate version.

>>>>templates/test.tpl
<?xml version="1.0" ?>
<opt:root>
{@vars is number($vars)}
{@vars.v1}
{@vars.v2}
</opt:root>

>>>>expected.txt
OUTPUT

>>>>data.php
$this->tpl->numberDecimals = 1;
$this->tpl->numberDecPoint = ';';
$this->tpl->numberThousandSep = '}';
$view->vars = array(
	'v1' => 1234.56,
	'v2' => 1234.32
);

>>>>result.txt
1}234;6
1}234;3
Return current item: Open Power Template