note 93619 deleted from function.ceil by danbrown

From: Date: Fri, 18 Sep 2009 19:11:43 +0000
Subject: note 93619 deleted from function.ceil by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-160842@lists.php.net to get a copy of this message
Note Submitter: gilbertchiao at gmail dot com ---- echo ceil(100*1.1); // 111, error function gceil($x) { return ceil( $x . "" ); // or // return ceil( (string) $x ); } echo gceil(100*1.1); // 110, correct

« previous php.notes (#160842) next »