mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-23 12:47:13 +01:00
5 lines
167 B
Plaintext
5 lines
167 B
Plaintext
/proc/percentage_between(x,a,b,centesimal = TRUE)
|
|
if (a > b)
|
|
return percentage_between(x, b, a, centesimal)
|
|
return clamp((x-a)/(b-a),0,1) * (centesimal ? 100 : 1)
|