Motivation
The budget breakdown page formats all amounts using maximumFractionDigits: 0, which rounds every value to the nearest whole dollar. Budget figures are likely entered as per-student amounts (e.g. $4.23 per student) and rounding introduces meaningful inaccuracy in how the numbers are displayed.
Deliverables
- Update the
formatCurrency function in frontend/src/app/funding/budget/page.tsx to display cents when the stored value is not a whole number (e.g. set maximumFractionDigits: 2) or use a fixed 2-decimal format
- Verify the display in both the treemap tooltip and the breakdown list below the chart
Important Notes
- If budget values are always intended to be whole dollars, the data entry form should enforce integers and this ticket can be closed as by-design — confirm the intended precision with whoever manages budget data entry
Motivation
The budget breakdown page formats all amounts using
maximumFractionDigits: 0, which rounds every value to the nearest whole dollar. Budget figures are likely entered as per-student amounts (e.g.$4.23 per student) and rounding introduces meaningful inaccuracy in how the numbers are displayed.Deliverables
formatCurrencyfunction infrontend/src/app/funding/budget/page.tsxto display cents when the stored value is not a whole number (e.g. setmaximumFractionDigits: 2) or use a fixed 2-decimal formatImportant Notes