On 30/06/2020 16:45, jitin wrote:
> I'm not sure about other locales, but in practice, for hi_IN almost
> everything is expressed with that notation, not just monetary values.
Interesting. Does the locale definition on your OS do the right thing?
For example, what are the results you obtain for the Python code below?
locale.setlocale(locale.LC_ALL, locale.normalize('hi_IN'))
print(locale.format_string('%f', 1.0e6, grouping=True, monetary=False))
print(locale.format_string('%f', 1.0e6, grouping=True, monetary=True))
I get:
10,000,00.000000
10,00,000.000000
but it is unlikely that this is right, looks like a bug to me.
Thank you!
Cheers,
Dan
--
You received this message because you are subscribed to the Google Groups
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/b7cbd73f-4572-d6bc-309d-c3c9ccd59958%40grinta.net.