No worries. :) I had to think for a second. I almost put in 10 instead of 100. :)
On Tue, Mar 1, 2011 at 12:38 PM, John Eubanks <[email protected]> wrote: > >> <cfset Percentage = Correct/Total * 100> >> >> On Tue, Mar 1, 2011 at 12:31 PM, John Eubanks <[email protected]> >> wrote: >> > >> > I know this is probably a dumb question, but I need help anyways. I >> am building a test in coldfusion for end users. I need to calculate >> the total percentage and display it. How do I do that? For example, >> if a user gets six out of ten questions correct, calculate 60% and >> display it. >> > >> > > Philip, many thanks. Just dropped it in and it works perfectly. :-) > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342662 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

