local function GetPercentageIncrease(initial_value, final_value)
return ((final_value - initial_value) / math.abs(initial_value)) * 100
end
local function GetPercentageDecrease(initial_value, final_value)
return ((initial_value - final_value) / math.abs(initial_value)) * 100
end
print("Percentage Increase Value: " .. GetPercentageIncrease(16, 18.4) .. "%")
print("Percentage Decrease Value: " .. GetPercentageDecrease(1445, 1300) .. "%")
To embed this project on your website, copy the following code and paste it into your website's HTML: