Skip to content

Instantly share code, notes, and snippets.

@zurche
Created September 11, 2023 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zurche/daba451b2bf60df6a47afb9732eb9667 to your computer and use it in GitHub Desktop.
Save zurche/daba451b2bf60df6a47afb9732eb9667 to your computer and use it in GitHub Desktop.
private fun getValuePercentageForRange(value: Float, max: Float, min: Float) =
(value - min) / (max - min)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment