Skip to content

Budget Breakdown: Dollar Amounts Should Not Round to Nearest Dollar - #181

Merged
calebyhan merged 1 commit into
mainfrom
168/budget-currency-precision
Jul 4, 2026
Merged

Budget Breakdown: Dollar Amounts Should Not Round to Nearest Dollar#181
calebyhan merged 1 commit into
mainfrom
168/budget-currency-precision

Conversation

@calebyhan

Copy link
Copy Markdown
Contributor

The budget breakdown page formats all amounts using maximumFractionDigits: 0, which rounds every value to the nearest whole dollar. Budget figures are entered as per-student amounts (e.g. $4.23 per student), so rounding introduces meaningful inaccuracy in how the numbers are displayed.

Changes:

  • Updated formatCurrency in frontend/src/app/funding/budget/page.tsx to use minimumFractionDigits: 2 / maximumFractionDigits: 2, fixing the treemap tooltip, total summary, and breakdown list (all share this one function)

Closes #168

@github-actions

Copy link
Copy Markdown

Test Results

570 tests  ±0   570 ✅ ±0   49s ⏱️ -1s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit d0d7ce2. ± Comparison against base commit bc11881.

@MasonMines2006 MasonMines2006 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@calebyhan
calebyhan merged commit b533dc0 into main Jul 4, 2026
3 checks passed
@calebyhan
calebyhan deleted the 168/budget-currency-precision branch July 4, 2026 15:23
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.

Budget Breakdown: Dollar Amounts Should Not Round to Nearest Dollar

2 participants