fix: round rain month total to avoid float noise
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -59,7 +59,7 @@ final class RainCalculator
|
||||
return [
|
||||
'today' => $perDate[$today] ?? $sumRain24,
|
||||
'previous_days' => $previous,
|
||||
'month_total' => $monthTotal,
|
||||
'month_total' => $monthTotal === null ? null : round($monthTotal, 2),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user