I suck at math today...

# Thread: I suck at math today...

1. dep
Senior Member
Join Date
Dec 1969
Posts
709

## I suck at math today...

Ok, I have a number of total records (64)<BR>a number of open records (37)<BR>and a number of closed records (27)<BR><BR>how can I find out what percentage of the records are closed? what a silly question...<BR><BR>A little more relevant to this message board, how do I do it in ASP? How do I perform mathematical functions on stuff i&#039;m querying in?<BR><BR>Thanks in advance for answering both questions :)<BR><BR>dep

2. Senior Member
Join Date
Dec 1969
Posts
10,852

## RE: I suck at math today...

1. 27 devided by 64.<BR><BR>2. &#060;% PercOfRecsClosed = VarNoOfClosedRecs / VarNoOfTotRecs %&#062;

3. Senior Member
Join Date
Dec 1969
Location
Los Angeles, CA
Posts
21,192

## Flunked your accounting cources huh

* 100 will be required to get a %??<BR><BR>but i am sure you will tell me otherwise...waiting for your excuse.<BR><BR>

4. Senior Member
Join Date
Dec 1969
Posts
10,852

## *Sigh*.....

That is strictly notational. Yes....If you want to use whole numbers, *ONE* way to get them, would be to multiply by 100. Sice you&#039;re a bright boy, I imagine that you can think of at least one other method. <BR><BR>If, however, you aren&#039;t loking for a pretty display, but actually need to *USE* the percentage for more math later in the script, it would stand to reason that the .42 would be of far more use than 42%.

5. Senior Member
Join Date
Dec 1969
Location
Los Angeles, CA
Posts
21,192

## I KNEW you will come up with crap like that

If you are asked what the % or something is your answer will HAVE to be fraction/number with 100 as the denominator. PERIOD<BR><BR>No ifs ands or buts.<BR><BR>Now your stupid argument about it being used LATER is irrelavent and you KNOW it.<BR>

6. Senior Member
Join Date
Dec 1969
Location
Los Angeles, CA
Posts
21,192

## From http://www.dictionary.com/

A fraction or ratio with 100 understood as the denominator; for example, 0.98 equals a percentage of 98. <BR><BR><BR>Need *I* say more???<BR><BR><BR>

7. Senior Member
Join Date
Dec 1969
Posts
10,852

## Listen....

It&#039;s not my fault that you can&#039;t get past the pedantics to come up with workable solutions to problems.<BR><BR>Maybe if you worked more than once a month, you&#039;d learn some of this stuff. :-P

8. Senior Member
Join Date
Dec 1969
Posts
10,852

## Ummm.....

I quote....<BR><BR>&#062;&#062; 0.98 equals a percentage of 98<BR><BR>And my eqation would give you what? Oh yeah...The same thing that&#039;s in the dictonary. &#060;double :-P /&#062;

9. dep
Senior Member
Join Date
Dec 1969
Posts
709

## thx for the help, anyway :) <nt>

.

10. Senior Member
Join Date
Dec 1969
Posts
10,852

## LOL....

Hope it helped. And don&#039;t listen to Ak. He&#039;s full of crap.

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•