Answer the question
In order to leave comments, you need to log in
How to calculate distance as a percentage?
Hello. I've been sitting for 7 hours and I can't find a definite answer!
Essence of the question:
There is a certain range and you need to calculate the position in the interval from A to B of a certain point as a percentage.
100% - 2382
x% - 1568 (can't think of a formula)
0% - 1276
PS
A and B change, need a formula!
help!!!
!!!
No need to write that I'm stupid, just give a number and a solution. With verification, please, there is a snag in it
Answer the question
In order to leave comments, you need to log in
here is a calculator for you written on js:
https://jsfiddle.net/k9z41L5c/
it turned out about 26%
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question