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

Support commas in number conversion #345

Merged
merged 1 commit into from
Jun 6, 2018

Conversation

hairyhenderson
Copy link
Owner

Numbers with commas as thousands-separators like "4,096" are converted to 0:

$ gomplate -i '{{ conv.ToFloat64 "4,096" }}'
0

This PR fixes it!

Signed-off-by: Dave Henderson dhenderson@gmail.com

Signed-off-by: Dave Henderson <dhenderson@gmail.com>
@hairyhenderson hairyhenderson self-assigned this Jun 6, 2018
@hairyhenderson hairyhenderson merged commit d8b275f into master Jun 6, 2018
@hairyhenderson hairyhenderson deleted the support-commas-in-num-conversion branch June 6, 2018 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant