Commit 2e9f191
fix: address Copilot review on #4644 - kwh precision in split slots
dp2() on both sides of the cap-boundary split let low_kwh + high_kwh
drift from the original kwh via double-rounding, and made the split
path's kwh precision inconsistent with this function's non-split
chunks, which already carry full-precision kwh (dp2() only applied to
cost/soc downstream). Kept full precision for the split kwh values
instead, matching the rest of the function.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent d2063ba commit 2e9f191
2 files changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2666 | 2666 | | |
2667 | 2667 | | |
2668 | 2668 | | |
| 2669 | + | |
| 2670 | + | |
| 2671 | + | |
2669 | 2672 | | |
2670 | 2673 | | |
2671 | | - | |
| 2674 | + | |
2672 | 2675 | | |
2673 | 2676 | | |
2674 | | - | |
| 2677 | + | |
2675 | 2678 | | |
2676 | 2679 | | |
2677 | 2680 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
| |||
0 commit comments