Skip to content

Commit

Permalink
fix: improve rounding
Browse files Browse the repository at this point in the history
  • Loading branch information
ArdtK committed Nov 3, 2023
1 parent e9b90c4 commit f25efec
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,13 @@ def _get_cost_per_selected_measure(self) -> dict:
)

_selected_measures_rows[_total_measure_cost_key].append(
sum(_selected_measures_rows[_total_measure_cost_key])
round(sum(_selected_measures_rows[_total_measure_cost_key]), self._decimals)
)
_selected_measures_rows[_total_measure_cost_incl_surtax_key].append(
sum(_selected_measures_rows[_total_measure_cost_incl_surtax_key])
round(
sum(_selected_measures_rows[_total_measure_cost_incl_surtax_key]),
self._decimals,
)
)

return dict(_selected_measures_rows)
Expand Down

0 comments on commit f25efec

Please sign in to comment.