in that case, I'd have to go with Courtney on this one. you could do a "3
EXP counter" comparison, too (using her logic structure).
~Simon
-----Original Message-----
From: Steve Martin [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 27, 2000 1:06 PM
To: CF-Talk
Subject: RE: Power of 3
6 mod 3 is 0 as well Simon.
> -----Original Message-----
> From: Simon Horwith [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 27, 2000 17:47
> To: CF-Talk
> Subject: RE: Power of 3
>
>
> <CFIF yourvariable MOD 3 IS 0>
>
> ~Simon
>
> -----Original Message-----
> From: Jon Hall [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 27, 2000 12:36 PM
> To: CF-Talk
> Subject: Power of 3
>
>
> Anyone have an idea on how to check to see if a value is a power of 3?
>
> I have a loop that needs to fire an event at every power of three that it
> hits and I am having problems getting my brain around how I need
> to do this.
> My first thoughts are to have a loopcounter and each time around
> the counter
> is incremented check and see if the counter value is the Next power of
> three.
> The end effect is that the if statement is triggered the following
> intervals: 3,9,27,81...
>
> jon
>
> ------------------------------------------------------------------
> ----------
> --------------------
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
> or send a
> message with 'unsubscribe' in the body to
> [EMAIL PROTECTED]
> ------------------------------------------------------------------
> ------------------------------
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
> or send a message with 'unsubscribe' in the body to
> [EMAIL PROTECTED]
>
----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a
message with 'unsubscribe' in the body to [EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]