Add percentage util
This commit is contained in:
@@ -559,4 +559,10 @@ function combine(a, b, c) {
|
||||
return toInteger((a << 20) | (b << 10) | c);
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
|
||||
function getPercentage(num, per) {
|
||||
return (num/100)*per;
|
||||
}
|
||||
|
||||
// ===========================================================================
|
||||
Reference in New Issue
Block a user