dev-fixes #14

Merged
lopar merged 12 commits from dev-fixes into master 2022-07-01 12:45:44 +00:00
2 changed files with 1958 additions and 2441 deletions
Showing only changes of commit 6c3ca6b2cb - Show all commits

View File

@ -14,4 +14,13 @@ class Math
{ {
return min(self::getPercentage($total, $number), 100); return min(self::getPercentage($total, $number), 100);
} }
/** Number-20% and Number+20% */
public static function get20PercentRange($number)
{
return [
'min' => $number * ((100 - 20) / 100),
'max' => $number * ((100 - 20) / 100)
];
}
} }

File diff suppressed because it is too large Load Diff