note 11334 added to round

From: Date: Fri, 16 Feb 2001 13:09:39 +0000
Subject: note 11334 added to round
Groups: php.notes 
Request: Send a blank email to php-notes+get-11143@lists.php.net to get a copy of this message
function rounder($number) { // rounds to the closest .05 return ((round(($number*100)/5))*5)/100 } http://www.php.net/manual/en/function.round.php

« previous php.notes (#11143) next »