note 5756 deleted from round by ronabop
| From: | ronabop@php.net | Date: | Mon, 21 Aug 2000 06:51:01 +0000 |
| Subject: | note 5756 deleted from round by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2842@lists.php.net to get a copy of this message | ||
round is kinda pitiful! What if I want to round an integer to 2 decimal places? (eg: 9.898 ->
9.90, or 4.223 -> 4.22 ?)
<p> Tried to get what I wanted by multiplying and dividing, but that sometimes produces errors
on long strings.
<P> Now, I'm trying something with arrays. (All this to make 4.563 = 4.56!)
-Ben