allow 4 decimals for rounded rates (#3596)
This commit is contained in:
@@ -24,7 +24,7 @@ class Util
|
||||
public static function calculateRate(float $hourlyRate, int $seconds): float
|
||||
{
|
||||
$rate = (float) ($hourlyRate * ($seconds / 3600));
|
||||
$rate = round($rate, 2);
|
||||
$rate = round($rate, 4);
|
||||
|
||||
return $rate;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user