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.
3 Replies
JavaBot
JavaBotā€¢9mo ago
āŒ› This post has been reserved for your question.
Hey @š“pothicon! Please use /close or the Close 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.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
š“pothicon
š“pothiconOPā€¢9mo ago
nvm i came up with this:
value / (max + min)
value / (max + min)
not sure how accurate it is at actually getting the progress between, but accuracy isnt important for this anyways, just the correlation is
JavaBot
JavaBotā€¢9mo ago
Post Closed
This post has been closed by <@465515365108154380>.
Want results from more Discord servers?
Add your server