Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

percent help

Status
Not open for further replies.

AtomSoft

Well-Known Member
hey guys this should be simple math but heh havent been to school in so long.

i know percentage for normal usage like 10% of 29 is 2.9 but what happens when 0 isnt the least?

like if i have a number from 20 to 60 how do i do it?

the lest is 20 (which is my 0) the most is 60(which is my 100) how do i calculate what 30 would be in percentage?
 
Take the difference between MIN and MAX. This is the range you apply the percentage to, then just add back in the MIN figure.

So 50% of 20-60 = 50% of 40 = 20 + 20(min) = 40. :p

So for your example, 20-60 = 40. 30 / 40 = .75 = 75%
 
Last edited:
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top