Do you know if there is a function to find out if a variable contains a
odd or an even number? I checked the manual but didn't see it.
Thanks!
Regards,
Sumarlidi Einar Dadason
SED - Graphic Design
--
Phone: (+354) 4615501
Mobile: (+354)
even numbers are even becuase they're divisible by 2
w/o a remainder... use this property to your advantage:
if ( $num % 2 ) {
print $num is odd;
}
else {
print $num is even;
}
-Original Message-
From: SED [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 12:07
2 matches
Mail list logo