note 6027 modified in ref.math by irc-html
| From: | irc-html@php.net | Date: | Sun, 30 Dec 2001 07:20:50 +0000 |
| Subject: | note 6027 modified in ref.math by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23962@lists.php.net to get a copy of this message | ||
the pascal code:
5 mod 2 translates to 5 % 2
5 div 2 translates to floor(5 / 2)
floor() rounds a fractional number down to the lowest integer. 5/2 is 2.5, and floor(2.5) = 2.
--was--
the pascal code:
<pre>5 mod 2</pre> translates to <pre>5 % 2</pre>
<pre>5 div 2</pre> translates to <pre>floor(5 / 2)<pre>
floor() rounds a fractional number down to the lowest integer. 5/2 is 2.5, and floor(2.5) = 2.
http://www.php.net/manual/en/ref.math.php