note 128302 added to function.floor
| From: | Anonymous at main dot php dot net | Date: | Sat, 11 Mar 2023 22:53:49 +0000 |
| Subject: | note 128302 added to function.floor | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-220258@lists.php.net to get a copy of this message | ||
You most likely want to use this like
(int)floor(1/1); because PHP still returns a
float. This is another example of PHP's awful design.
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.13.130 (proxied: 2003:e6:5729:da00:f98a:158f:fd52:9731)
----
Manual Page -- https://php.net/manual/en/function.floor.php
Edit -- https://main.php.net/note/edit/128302
Del: integrated -- https://main.php.net/note/delete/128302/integrated
Del: useless -- https://main.php.net/note/delete/128302/useless
Del: bad code -- https://main.php.net/note/delete/128302/bad+code
Del: spam -- https://main.php.net/note/delete/128302/spam
Del: non-english -- https://main.php.net/note/delete/128302/non-english
Del: in docs -- https://main.php.net/note/delete/128302/in+docs
Del: other reasons-- https://main.php.net/note/delete/128302
Reject -- https://main.php.net/note/reject/128302
Search -- https://main.php.net/manage/user-notes.php