note 82107 added to function.floor

From: Date: Thu, 27 Mar 2008 20:29:21 +0000
Subject: note 82107 added to function.floor
Groups: php.notes 
Request: Send a blank email to php-notes+get-137642@lists.php.net to get a copy of this message
Bug in floor() ? $x = 934.003; $milliseconds = $x - floor($x); echo $milliseconds; results into: 0.0030000000000427 why? I would expect just 0.003?? >> ow sorry my PHP Version 5.1.6 ---- Server IP: 83.137.20.135 Probable Submitter: 80.56.169.162 ---- Manual Page -- http://www.php.net/manual/en/function.floor.php Edit -- https://master.php.net/note/edit/82107 Del: integrated -- https://master.php.net/note/delete/82107/integrated Del: useless -- https://master.php.net/note/delete/82107/useless Del: bad code -- https://master.php.net/note/delete/82107/bad+code Del: spam -- https://master.php.net/note/delete/82107/spam Del: non-english -- https://master.php.net/note/delete/82107/non-english Del: in docs -- https://master.php.net/note/delete/82107/in+docs Del: other reasons-- https://master.php.net/note/delete/82107 Reject -- https://master.php.net/note/reject/82107 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#137642) next »