#### ichocolate

##### Senior Member
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

Thanks

#### Pox

##### Expert Member
(Piece of pie / Total of all the pie) *100 = percentage for that piece.

#### Quintrix

##### Senior Member
Add up all those slices of the pie and devide each slice by the total

#### cguy

##### Executive Member
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
You need to sum the units and then calculate the percentage of the unit against the sum.

#### Venomous

##### Honorary Master
(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:

#### Drifter

##### Honorary Master
With Pox here, Divide by total and times by 100.

#### Daruk

##### Honorary Master
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

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)

#### LD50

##### Senior Member
Lol @Pox and @Venomoose

#### braniac

##### Well-Known Member
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
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
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

#### ichocolate

##### Senior Member
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

in Pascal?
please send me the .pas file?

#### ichocolate

##### Senior Member
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.

#### Trust|Nobody

##### Senior Member
This is kindergarten syllabus. Stuff you learn when you're like 2.

#### RonSwanson

##### Expert Member
This is kindergarten syllabus. Stuff you learn when you're like 2.
LOL. Maths Lit. proudly brought to you by the ANC,