note 93195 deleted from function.abs by danbrown

From: Date: Thu, 27 Aug 2009 22:11:20 +0000
Subject: note 93195 deleted from function.abs by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-159957@lists.php.net to get a copy of this message
Note Submitter: zachary dot pruckowski at gmail dot com ---- 27-Aug-09 Anonymous - be aware that multiplying by -1 turns negative numbers positive, but doesn't protect against being passed a positive number by mistake. You may also want to check and make sure you don't inadvertently lose precision (this is a problem in other languages), and keep an eye out for underflow/overflow. The ABS function does that for you.

« previous php.notes (#159957) next »