Not that this answers your question, but you're unnecessarily using pound
signs.

<cfset Answer = CountMale.RecordCount / Responses> is more correct.

Scoping your variable wouldn't be a bad idea either.

> -----Original Message-----
> From: Lee Fuller [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, October 01, 2002 10:19 PM
> To: CF-Talk
> Subject: Math In MX?
> 
> 
> Ok.. I'm confused...
> 
> If...
> 
> #countmale.record# = 379  (which a cfoutput confirms)
> 
> And...
> 
> #responses# = 1093 (which a cfoutput confirms)
> 
> Then how the heck does...
> 
> <cfset Answer = #CountMale.RecordCount#/#Responses#>
> 
> End up being 0.0111569031498 ?
> 
> The answer is simple math.. And SHOULD be.. 0.346752058554.  
> Which, when
> multiplied by 100 yields the percentage.
> 
> Sooo....  What am I missing?
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to