Skip to content

Conversation

sfmqrb
Copy link

@sfmqrb sfmqrb commented Jan 29, 2022

Solve issue #546

@sfmqrb
Copy link
Author

sfmqrb commented Jan 29, 2022

console.log(numeral(999).format("0.00 a"));
console.log(numeral(9999).format("0.00 a"));
console.log(numeral(99999).format("0.00 a"));
console.log(numeral(999999).format("0.00 a"));
console.log(numeral(9999999).format("0.00 a"));
console.log(numeral(99999999).format("0.00 a"));
console.log(numeral(999999999).format("0.00 a"));

output =>
999.00
10.00 k
100.00 k
1.00 m
10.00 m
100.00 m
1.00 b

) {
int = String(Number(int) / 1000);

switch (abbr.trim()) {
Copy link
Author

Choose a reason for hiding this comment

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

Only this statement is changed semantically!

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.

1 participant