Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Commit

Permalink
Merge pull request #102 from loeck/master
Browse files Browse the repository at this point in the history
Change numeral format in formatShort
  • Loading branch information
gre authored Mar 2, 2018
2 parents f8165b6 + 0073f48 commit 1101392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/currencies/src/formatShort.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ import numeral from "numeral";
export function formatShort(unit: Unit, value: number): string {
const { magnitude } = unit;
const floatValue = value / 10 ** magnitude;
return numeral(floatValue).format("0.0a");
return numeral(floatValue).format("0[.]0a");
}

0 comments on commit 1101392

Please sign in to comment.