Skip to content

Commit

Permalink
Fix: Rounding transactions numbers
Browse files Browse the repository at this point in the history
Bigdecimal values can have extreme amounts of decimals. Transaction cards now round by converting to float (only visually)
  • Loading branch information
tommyah committed May 24, 2026
1 parent 62f07d2 commit e62eb66
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private void filterData(final String searchKeyword, final Integer weekTarget) {
t.getShare().getStock().getSymbol(),
t.getShare().getStock().getCompany(),
sharePrefix + t.getShare().getQuantity().floatValue() + " shares",
moneyPrefix + t.getCalculator().calculateTotal().toString() + " NOK",
moneyPrefix + t.getCalculator().calculateTotal().floatValue() + " NOK",
weekTarget.toString());
}
});
Expand Down

0 comments on commit e62eb66

Please sign in to comment.