You should read the sprintf to get exactly what you need, but a rough solution might be:
<kbd>--$x = 12.3456789; $x = $sprintf('%.2f', $x);
In reply to Re: Where's that function
by OeufMayo
in thread Where's that function
by Chady
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |