Jump to content

Hey guys. So, If I have a number that is a percentage (1-100) and I also have a range, for example, 0-15, how can I convert the percentage into the range? For example, 0 percent would be 0 and 100 percent would be 15. Don't really know how to explain this, but .. how would i do it?

 

ALSO, If I have a number between -1 and 1, how can I convert that to a percentage? -1 being 0 percent 1 being 100 percent.

Link to comment
https://linustechtips.com/topic/19901-random-math-questionss/
Share on other sites

Link to post
Share on other sites

For the first, you multiply the number by 0.15

 

For the second, you add 1 and then multiply by 50.

If you ever need help with a build, read the following before posting: http://linustechtips.com/main/topic/3061-build-plan-thread-recommendations-please-read-before-posting/
Also, make sure to quote a post or tag a member when replying or else they won't get a notification that you replied to them.

Link to comment
https://linustechtips.com/topic/19901-random-math-questionss/#findComment-235458
Share on other sites

Link to post
Share on other sites

i blew my own mind trying to figured that out lol

i had it right but i couldent explain how i did it

Cpu: Intel i7 4770k @4.4 Ghz | Case: Corsair 350D | Motherbord: Z87 Gryphon | Ram: dominator platinum 4X4 1866 | Video Card: SLI GTX 980 Ti | Power Supply: Seasonic 1000 platinum | Monitor: ACER XB270HU | Keyboard: RK-9100 | Mouse: R.A.T. 7 | Headset : HD 8 DJ | Watercooled

Link to comment
https://linustechtips.com/topic/19901-random-math-questionss/#findComment-235478
Share on other sites

Link to post
Share on other sites

I dont think that the second version is correct

 

take 6.75...

6.75 + 1 = 7.75 * 50 = 387.5

Number between -1 and 1.

6.75 is not a number between -1 and 1.

If you ever need help with a build, read the following before posting: http://linustechtips.com/main/topic/3061-build-plan-thread-recommendations-please-read-before-posting/
Also, make sure to quote a post or tag a member when replying or else they won't get a notification that you replied to them.

Link to comment
https://linustechtips.com/topic/19901-random-math-questionss/#findComment-235495
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×