Location: PHPKode > projects > Open Power Template > tests/Opt/function/number_1.txt
Testing the number() function.

>>>>templates/test.tpl
<?xml version="1.0" ?>
<opt:root>
{number(1234.56)}
{number(1234.32)}
</opt:root>

>>>>expected.txt
OUTPUT

>>>>data.php
$this->tpl->numberDecimals = 1;
$this->tpl->numberDecPoint = ';';
$this->tpl->numberThousandSep = '}';

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