Get progress of int between two other ints.
I have three integers, min, max, and value. Value is always between min and max, but I need to figure out how to get a double that represents how "far along" the value is from min to max.
For example:
Min: 0
Max: 100
Value: 69
would return 0.69 as it is 69% between 0 and 100.
I just need help on the math required for this.
I just need help on the math required for this.
3 Replies
ā
This post has been reserved for your question.
Hey @špothicon! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
nvm i came up with this:
not sure how accurate it is at actually getting the progress between, but accuracy isnt important for this anyways, just the correlation is
Post Closed
This post has been closed by <@465515365108154380>.