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

digit group separation and decimal split separator #58

Open
trobert2 opened this issue Aug 2, 2019 · 4 comments
Open

digit group separation and decimal split separator #58

trobert2 opened this issue Aug 2, 2019 · 4 comments

Comments

@trobert2
Copy link

trobert2 commented Aug 2, 2019

This is a great package.
Would you mind updating the documentation on how we can use different formats used around the world, like other European countries, not to mention India where they separate digit groups differently?

I would mainly like to get

1.244,90 €

instead of

€1,244.90
@Rhymond
Copy link
Owner

Rhymond commented Nov 12, 2019

Hey @trobert2!

You can always add new custom currency using AddCurrency method. It accepts:

	Fraction int
	Grapheme string
	Template string
	Decimal  string
	Thousand string

to make your custom currency display in whatever matter you want.
There is a big list of currencies already there.
https://github.com/Rhymond/go-money/blob/master/currency.go
If you can't find yours please let me know and we can update the list.

@nmaupu
Copy link

nmaupu commented Jun 27, 2020

Juste in case, you didn't get the notification ;)

@codezork
Copy link

codezork commented Oct 3, 2020

Hi Rhymon,
It is quite clear that one can add its own flavor of grouping signs, but the grouping of currency in the European Union is done with , as decimal separator and . as thousand separator. Anything else is just wrong. The advantage of your package is that one does not have to modify for every country but can rely on correctness of the code base. Please change accordingly.
Cheers Joerg

@codezork
Copy link

codezork commented Oct 3, 2020

I forgot: the template is "1 $" in Europe.

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

No branches or pull requests

4 participants