Sean,

Yes, my reasoning if not correct; it did work out the same luckily.
I know better in terms of order of operation and precedence, etc...
I just blurted out my logic after realizing the novice question about
evaluating the expression in the first place.

Its not my logic that is strange, its me in genenral. 

:-D

Mike




-----Original Message-----
From: Sean A Corfield [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 09, 2003 11:02 PM
To: CF-Talk
Subject: Re: clarification


On Saturday, Aug 9, 2003, at 17:59 US/Pacific, Michael T. Tangorre 
wrote:
> Oh crap.. I see it!

The answer's right but your logic is a little strange:

> 5 * 1 + 1 - 1

Since * is highest precedence than + or - this is equivalent to:

( 5 * 1 ) + 1 - 1

which is:

5 + 1 - 1

(which is 5)

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to