Re: Setprecision ?? pls help
| From: | Marek Kilimajer | Date: | Mon, 24 Mar 2003 12:18:49 +0000 |
| Subject: | Re: Setprecision ?? pls help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140834@lists.php.net to get a copy of this message | ||
number_format
Adriaan Nel wrote:
Hi all, I'v got the following: round ($val1,4); echo "$val1"; It works fine, but when $val which is a float, contains for instance 1.1 I want it to output 1.1000 instead of just 1.1 I know in C++ this can be done with setprecision(), but I can't seem to find anything similar in php....please help Thanks ppl njoy ur day