note 97672 deleted from ref.math by mazzanet

From: Date: Sun, 02 May 2010 17:02:10 +0000
Subject: note 97672 deleted from ref.math by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-168858@lists.php.net to get a copy of this message
Note Submitter: Lucio ---- @michal at roszka dot pl Your sgn function will not work correctly for numbers between -1 and 0 or between 0 and 1: <?php echo sgn(0.5); // will yield 0.5 echo sgn(-0.5); // will yield -0.5 ?>

« previous php.notes (#168858) next »