note 18934 added to function.sprintf
| From: | cv at corbach dot de | Date: | Sun, 10 Feb 2002 12:36:56 +0000 |
| Subject: | note 18934 added to function.sprintf | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-26442@lists.php.net to get a copy of this message | ||
To make radu.rendec@ines.ro's excellent function work on signed numbers you must change the
first line to:
$e = floor(log10(abs($x)));
--
http://www.php.net/manual/en/function.sprintf.php
http://master.php.net/manage/user-notes.php?action=edit+18934
http://master.php.net/manage/user-notes.php?action=delete+18934
http://master.php.net/manage/user-notes.php?action=reject+18934