Skip to content

Commit

Permalink
morePrecision in euroValueFormatter to support small values
Browse files Browse the repository at this point in the history
  • Loading branch information
andnorda committed Feb 10, 2025
1 parent 8890295 commit cf39bd0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/chart/cost_transformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ export function euroValueFormatter(value: number): string {
return value.toLocaleString('en-GB', {
style: 'currency',
currency: 'EUR',
maximumFractionDigits: 2
maximumFractionDigits: 2,
maximumSignificantDigits: 2,
roundingPriority: 'morePrecision'
});
}

Expand Down

0 comments on commit cf39bd0

Please sign in to comment.