in reply to Where's that function
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Where's that function
by MrNobo1024 (Hermit) on Feb 06, 2001 at 20:54 UTC |