note 16803 added to ref.math

From: Date: Wed, 14 Nov 2001 11:31:24 +0000
Subject: note 16803 added to ref.math
Groups: php.notes 
Request: Send a blank email to php-notes+get-20825@lists.php.net to get a copy of this message
I was looking for a way to convert distance to time (in hours and secs). Here is the best way to do that... $dtime = ($distance / 60);//60mph $dtime = sprintf("%0.2f",$dtime); list($dhours,$dminutes) = explode(".", $dtime); $dminutes = ($dminutes * .6); $dminutes = sprintf("%0.0f",$dminutes); -- http://www.php.net/manual/en/ref.math.php http://master.php.net/manage/user-notes.php?action=edit+16803 http://master.php.net/manage/user-notes.php?action=delete+16803 http://master.php.net/manage/user-notes.php?action=reject+16803

« previous php.notes (#20825) next »