Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add formatDollars #248

Merged
merged 2 commits into from
Apr 2, 2020
Merged

Add formatDollars #248

merged 2 commits into from
Apr 2, 2020

Conversation

rkuykendall
Copy link
Contributor

No description provided.

@@ -161,6 +161,11 @@ export function formatMoney (value?: null | number | string) {
return numeral(value).format('$0,0.00');
}

export function formatDollars (value?: null | number | string) {
Copy link

Choose a reason for hiding this comment

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

Maybe something like formatNearestDollar? The rounding comes as a surprise.

@rkuykendall rkuykendall merged commit a5d42c0 into master Apr 2, 2020
@rkuykendall rkuykendall deleted the format-dollars branch April 2, 2020 15:58
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.

None yet

2 participants