Skip to content

fix: roundToCents uses Math.round instead of Math.floor to round to n… - #1453

Open
jotel-dev wants to merge 1 commit into
LabsCrypt:mainfrom
jotel-dev:1372-backend-fix-rounding-down
Open

fix: roundToCents uses Math.round instead of Math.floor to round to n…#1453
jotel-dev wants to merge 1 commit into
LabsCrypt:mainfrom
jotel-dev:1372-backend-fix-rounding-down

Conversation

@jotel-dev

Copy link
Copy Markdown

The fix is complete. Here's a summary:

Fix: Changed Math.floor to Math.round in roundToCents at backend/src/controllers/loanController.ts:228, so values round to the nearest cent instead of always rounding down.

Branch: 1372-backend-fix-rounding-down
Commit: f3a9636 — fix: roundToCents uses Math.round instead of Math.floor to round to nearest cent

closes #1372

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Backend] Owed values are always rounded down

1 participant