Posted by Janwillem Borleffs on 08/28/05 11:23
Hero Wanders wrote:
> That *rounds* the value instead of returning the float with only the
> last to digits of it (ok actually Thierry asked for a function which
> returns *a* float (function give($float) { return 3.14; } would do
> it)).
When you would have bothered to look at the manual page, you would have
noticed that the round function accepts an optional second argument to
indicate the precision.
JW
[Back to original message]
|