Skip to content

Budget Breakdown: Dollar Amounts Should Not Round to Nearest Dollar #168

Description

@calebyhan

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions