Hey! How can I get a percent from 2 numbers?
So like this:
local min = 0.072
local max = 0.982
local num = 0.54
local percent = PERCENT of num
Hey! How can I get a percent from 2 numbers?
So like this:
local min = 0.072
local max = 0.982
local num = 0.54
local percent = PERCENT of num
local percent = num / max * 100
Noticed you don’t start at zero, so this would be it.
local percent = (num - min) / (max - min) * 100
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.