note 73961 added to function.round
| From: | tom at crysis-online dot com | Date: | Sun, 18 Mar 2007 04:31:17 +0000 |
| Subject: | note 73961 added to function.round | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124552@lists.php.net to get a copy of this message | ||
I just found out then that even if you round a double (3.7) to an integer (4), it's data type
remains as 'double'. So it's always good to use the settype() function when using the
round() function to prevent any problems with your scripts.
----
Server IP: 203.202.10.60
Probable Submitter: 203.171.98.49 (proxied: 203.171.98.49)
----
Manual Page -- http://www.php.net/manual/en/function.round.php
Edit -- https://master.php.net/note/edit/73961
Del: integrated -- https://master.php.net/note/delete/73961/integrated
Del: useless -- https://master.php.net/note/delete/73961/useless
Del: bad code -- https://master.php.net/note/delete/73961/bad+code
Del: spam -- https://master.php.net/note/delete/73961/spam
Del: non-english -- https://master.php.net/note/delete/73961/non-english
Del: in docs -- https://master.php.net/note/delete/73961/in+docs
Del: other reasons-- https://master.php.net/note/delete/73961
Reject -- https://master.php.net/note/reject/73961
Search -- https://master.php.net/manage/user-notes.php