Re: Finding every even 100
| From: | Rick St Jean | Date: | Wed, 21 Mar 2001 15:31:47 +0000 |
| Subject: | Re: Finding every even 100 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44959@lists.php.net to get a copy of this message | ||
$i % 100 = 0
At 10:37 AM 3/21/01 +0100, Nicklas af Ekenstam wrote:
Hi Propably a really simple question, but my math skills are not up to speed anymore: How do I find out if an int is an even 100? I.e. 100, 200, 1200, 9900 etc. I could always divide by 100 and have a look at the result and se if it has any decimals but I'm guessing this could be done prettier using modulus. Right? - Nille -- 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########################################################## # Rick St Jean, # rstjean@internet.look.ca # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ##########################################################