note 36962 deleted from language.operators.arithmetic by hholzgra
| From: | hholzgra@php.net | Date: | Thu, 02 Aug 2012 15:01:35 +0000 |
| Subject: | note 36962 deleted from language.operators.arithmetic by hholzgra | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-189791@lists.php.net to get a copy of this message | ||
Note Submitter: darnell at uga dot edu
----
Also, when automatically converting floats to integers, PHP truncates them rather than rounding. So
in the previous note, 2.4 gets truncated to 2 before the modulus operator is applied.