navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Calculating percentages

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> ASP and Database >> Calculating percentages
Page: [1]
 
mbmunday

 

Posts: 162
Joined: 8/8/2002
From: North Richland Hills, Texas
Status: offline

 
Calculating percentages - 8/3/2003 23:19:34   
I' m developing a custom Exit Interview Survey for a client and am needing to calculate percentages for the answers submitted, e.g.-20% answered " Yes" to this question, etc......

Has anyone done anything similar to this and what have I gotten myself into? (I' m scared to find out :))

I' m doing it in ASP, and am fairly proficient with the language, but have never worked with percentages.

Any tips (e.g. any online tutorials that you may know of out there) in the right direction is greatly appreciated.

Thanks,

MB
bobby

 

Posts: 11394
Joined: 8/15/1969
From: Seattle WA USA
Status: offline

 
RE: Calculating percentages - 8/4/2003 12:12:56   
A percentage is nothing more than a fraction based on 100

So to calculate a percentage using ASP it' s just a matter of simple division... for example:

If there were 40 peopld polled, and 12 of them answered " yes" then the percentage would be ((12/40) * 100) - or 30

(You have to add the % symbol)

_____________________________

If con is the opposite of pro, is Congress the opposite of progress?


:)

(in reply to mbmunday)
mbmunday

 

Posts: 162
Joined: 8/8/2002
From: North Richland Hills, Texas
Status: offline

 
RE: Calculating percentages - 8/4/2003 16:44:47   
Thank you Bobby!

(in reply to mbmunday)
Page:   [1]

All Forums >> Web Development >> ASP and Database >> Calculating percentages
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts