Finding every even 100
| From: | Nicklas af Ekenstam | Date: | Wed, 21 Mar 2001 09:37:38 +0000 |
| Subject: | Finding every even 100 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-44911@lists.php.net to get a copy of this message | ||
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