<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. > >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:342658 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

