Welcome to our community

Be a part of something great, join today!

Percentage between two numbers

xNICK

New member
Feb 7, 2019
7
Hey, So I need to know what number is 75% between 2 lines? Line 1 = 124.464 and Line 2 = 124.444. Currently I use
Line 1 + Line 2 / 2 = 50% or (124.454) Then (124.454 + Line 1) / 2 = 75% or (124.459). Is there a easier or better way to get these results, cause this formula can't get percents like 60% or 40%.
PS: Wasn't sure what topic to put this under, first time here.
Thank you for your time and help!
 

MarkFL

Administrator
Staff member
Feb 24, 2012
13,775
Suppose you have two real numbers \(x_1\) and \(x_2\) with \(x_1<x_2\). And we want to find a third number \(x_p\) that is a part \(p\) (where \(0\le p\le1\)) of the distance from \(x_1\) to \(x_2\). Then I would use:

\(\displaystyle x_p=x_1+p(x_2-x_1)\)

Does that make sense?
 

xNICK

New member
Feb 7, 2019
7
Yes! Thats exactly what I needed! Thank you so much! I’ve been out of school for too many years now. Haha.