Re: simple math
| From: | Rasmus Lerdorf | Date: | Sat, 20 Jan 2001 20:01:34 +0000 |
| Subject: | Re: simple math | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35837@lists.php.net to get a copy of this message | ||
11 % 3
On Sat, 20 Jan 2001 PeterOblivion@aol.com wrote:
> Lets say I have 11 / 3
>
> answer is 2.6666667
>
> what if I want to get the remainder of it
> so 11 / 3 would be 2
>
> is there a built in function for this in PHP?
> kinda like MOD in Visual Basic?
>
> - Thanks
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>