Re: [Flashcoders] Even odds

2005-12-09 Thread Mattias Johansson
Geeks ;) 2005/12/9, Mark Winterhalder [EMAIL PROTECTED]: OK, I ran some tests of my own. After repeating it a couple of times, with various outcomes, the trend seems to be that a) the cast is about 10% faster than the equality, and b) the bitwise and is about 10% faster than the modulo. I

[Flashcoders] Even odds

2005-12-08 Thread Mike Boutin
Is it possible to check a number to see if its even / odd? Thanks! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] Even odds

2005-12-08 Thread Ralph Caraveo
:[EMAIL PROTECTED] On Behalf Of Mike Boutin Sent: Thursday, December 08, 2005 4:40 PM To: Flashcoders mailing list Subject: [Flashcoders] Even odds Is it possible to check a number to see if its even / odd? Thanks! ___ Flashcoders mailing list Flashcoders

RE: [Flashcoders] Even odds

2005-12-08 Thread Scott Hyndman
var isOdd:Boolean = number % 2 == 1; -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Boutin Sent: December 8, 2005 7:40 PM To: Flashcoders mailing list Subject: [Flashcoders] Even odds Is it possible to check a number to see if its even / odd

Re: [Flashcoders] Even odds

2005-12-08 Thread Boon Chew
Yet another way (and probably the fastest): var isOdd:Boolean = Boolean(num 1); - boon Mike Boutin [EMAIL PROTECTED] wrote: Is it possible to check a number to see if its even / odd? Thanks! ___ Flashcoders mailing list

RE: [Flashcoders] Even odds

2005-12-08 Thread Scott Hyndman
is an improvement. Scott -Original Message- From: [EMAIL PROTECTED] on behalf of Boon Chew Sent: Thu 12/8/2005 9:34 PM To: Flashcoders mailing list Cc: Subject:Re: [Flashcoders] Even odds Yet another way (and probably the fastest): var isOdd:Boolean = Boolean(num 1

Re: [Flashcoders] Even odds

2005-12-08 Thread Mark Winterhalder
: [Flashcoders] Even odds Yet another way (and probably the fastest): var isOdd:Boolean = Boolean(num 1); - boon Mike Boutin [EMAIL PROTECTED] wrote: Is it possible to check a number to see if its even / odd? Thanks! ___ Flashcoders