Add percentage util

This commit is contained in:
Vortrex
2021-03-22 03:13:33 -05:00
parent 3f74b3cf00
commit e471cd7bc8

View File

@@ -559,4 +559,10 @@ function combine(a, b, c) {
return toInteger((a << 20) | (b << 10) | c);
}
// ===========================================================================
function getPercentage(num, per) {
return (num/100)*per;
}
// ===========================================================================