some math help please

ichocolate

Senior Member
Joined
Oct 17, 2011
Messages
581
HI,

I forgot this stuff and feel terrible and useless.

I need to find out what is the % value of each amount of units ..... that make up a pie.

so of the pie for example... i have a few items or categories....

So for each value below how to work out what they represent in the pie.
I forgot how the hell u do this:

15 000
75 000
90 000
200 000

do u say 15 000 / 100 ; and 75 000 / 100 ; and 90 000 / 100 ; and 200 000 / 100 ?
but then i dont know what the hell to do next.

I dont know how to search this on google or youtube even because i know what the hell u call it

Please help,

Thanks
 

Pox

Expert Member
Joined
Sep 13, 2005
Messages
3,459
(Piece of pie / Total of all the pie) *100 = percentage for that piece.
 

cguy

Executive Member
Joined
Jan 2, 2013
Messages
5,029
The sum of them all is 380 000. The 15 000 value is therefore (15000/38000)*100 percent of the pie (~4%). etc.
 

Drifter

Honorary Master
Joined
Dec 19, 2012
Messages
18,048
You need to sum the units and then calculate the percentage of the unit against the sum.
 

Venomous

Honorary Master
Joined
Oct 6, 2010
Messages
54,172
(Total of all the pie) ÷ 100 = percentage for that piece.
FTFY
Devide not times by


That will give you the value/% of 1 unit.

After that you need to calculate the various segments.

There are fomulas to calculate this.
 
Last edited:

Daruk

Honorary Master
Joined
Jul 18, 2008
Messages
39,491
HI,

I forgot this stuff and feel terrible and useless.

I need to find out what is the % value of each amount of units ..... that make up a pie.

so of the pie for example... i have a few items or categories....

So for each value below how to work out what they represent in the pie.
I forgot how the hell u do this:

15 000
75 000
90 000
200 000

do u say 15 000 / 100 ; and 75 000 / 100 ; and 90 000 / 100 ; and 200 000 / 100 ?
but then i dont know what the hell to do next.

I dont know how to search this on google or youtube even because i know what the hell u call it

Please help,

Thanks
15 000 + 75 000 + 90 000 + 200 000 = 380 000

15 000 / 380 000 X 100 = 3.95%
75 000 / 380 000 X 100 = 17.74%
90 000 / 380 000 X 100 = 23.68%
200 000 / 380 000 X 100 = 52.63%

For verification: 3.95 + 17.74 + 23.68 + 52.63 - 100% (well 98, but they're rounded so they won't be exact)
 

braniac

Well-Known Member
Joined
Nov 8, 2010
Messages
129
Hi. If I'm understanding your question correctly this is my solution.To work out % eg 15000.
15000/380000*100=3.95%
To work out degrees on pie chart eg 15000
15000/380000*360=14.21°
Where 380000 is the sum of 15000,75000,90000 and 200000.
Hope this helps.
 

ichocolate

Senior Member
Joined
Oct 17, 2011
Messages
581
15 000 + 75 000 + 90 000 + 200 000 = 380 000

15 000 / 380 000 X 100 = 3.95%
75 000 / 380 000 X 100 = 17.74%
90 000 / 380 000 X 100 = 23.68%
200 000 / 380 000 X 100 = 52.63%

For verification: 3.95 + 17.74 + 23.68 + 52.63 - 100% (well 98, but they're rounded so they won't be exact)
The sum of them all is 380 000. The 15 000 value is therefore (15000/38000)*100 percent of the pie (~4%). etc.
Add up all those slices of the pie and devide each slice by the total

Hi,

Thanks these were the most understood.

Regards
James
 

Drifter

Honorary Master
Joined
Dec 19, 2012
Messages
18,048
DEFINE DATA LOCAL
01 #N-TOTAL (N6)
01 #N-UNIT (N6)
01 #N-PERC (N3.2)
END-DEFINE
*
#N-TOTAL := 380000
#N-UNIT := 15000
*
COMPUTE ROUNDED #N-PERC = (#N-UNIT / #N-TOTAL) * 100
*
WRITE 'ANSWER = ' #N-PERC '%'
*
END

Run

ANSWER = 3.90 %
 

ichocolate

Senior Member
Joined
Oct 17, 2011
Messages
581
DEFINE DATA LOCAL
01 #N-TOTAL (N6)
01 #N-UNIT (N6)
01 #N-PERC (N3.2)
END-DEFINE
*
#N-TOTAL := 380000
#N-UNIT := 15000
*
COMPUTE ROUNDED #N-PERC = (#N-UNIT / #N-TOTAL) * 100
*
WRITE 'ANSWER = ' #N-PERC '%'
*
END

Run

ANSWER = 3.90 %

in Pascal?
please send me the .pas file?
 

ichocolate

Senior Member
Joined
Oct 17, 2011
Messages
581
Hi. If I'm understanding your question correctly this is my solution.To work out % eg 15000.
15000/380000*100=3.95%
To work out degrees on pie chart eg 15000
15000/380000*360=14.21°
Where 380000 is the sum of 15000,75000,90000 and 200000.
Hope this helps.
Sorry sometimes i ask the questions in a shitty rush.
 
Top