note 61967 deleted from function.round by danbrown

From: Date: Sun, 17 May 2009 16:21:24 +0000
Subject: note 61967 deleted from function.round by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154803@lists.php.net to get a copy of this message
Note Submitter: adrianbj ---- A simple correction to the significant digits formula posted way below: round($n, ceil(0 - log10($n)) + $sigdigits - 1); Note the addition of '-1' to the formula originally posted.

« previous php.notes (#154803) next »