Re: [PHP] Finding every even 100

2001-03-21 Thread Rick St Jean
$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

RE: [PHP] Finding every even 100

2001-03-21 Thread Stewart Taylor
If the number divided by 100 hundred has no remainder e.g. if (($num % 100) == 0) even_100 = true; -Stewart -Original Message- From: Nicklas af Ekenstam [mailto:[EMAIL PROTECTED]] Sent: 21 March 2001 09:38 To: [EMAIL PROTECTED] Subject: [PHP] Finding every even 100 Hi Propably a

[PHP] Finding every even 100

2001-03-21 Thread Nicklas af Ekenstam
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