note 42010 added to function.bccomp
| From: | gabenahmias at hotmail dot com | Date: | Thu, 29 Apr 2004 00:59:13 +0000 |
| Subject: | note 42010 added to function.bccomp | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-68980@lists.php.net to get a copy of this message | ||
Well, there is another, more simple option to find if a number is negative. Just do a
substr($string, 0, 1) and check if it's "-."
----
Manual Page -- http://www.php.net/manual/en/function.bccomp.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42010
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42010&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42010&report=yes
Search -- http://master.php.net/manage/user-notes.php