Re: Integer division
| From: | Marcelo Gulin | Date: | Fri, 19 Jan 2001 18:19:10 +0000 |
| Subject: | Re: Integer division | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35680@lists.php.net to get a copy of this message | ||
Hi Todd!
if $a = 3.5 then
echo (int)$a // print 3
regards
Marcelo Gulin
Todd Cary escribió:
>
> What is the syntax for dividing 7 by 2 and getting 3; not 3.5?
>
> Todd
>
> --
> Todd Cary
> Ariste Software
> todd@aristesoftware.com
>
> --
> 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