Am Freitag, 26. April 2019, 19:24:12 CEST schrieb Martin Michlmayr:
> * Florian Lindner <[email protected]> [2019-04-26 10:14]:
> >
https://aumayr.github.io/beancount-docs-static/api_reference/beancount.core.html?highlight=link#beancount.core.number.D
> > "Convert a string, possibly with commas, into a Decimal object."
>
> > but the documentation seems wrong or misleading.
>
> It's not wrong per se (although I can see how it can be viewed as
> misleading if you're used to comma decimal separators). The comma is
> used to separate thousands, e.g. 1,000,000.00 is one million.
> beancount will handle that correctly.
>
> > D() seems to just swallow the comma, not use it as decimal separator
>
> Because comma decimal separators are currently not supported, see
> https://bitbucket.org/blais/beancount/issues/204
That's fair and I am ok without having support for the comma as decimal
separator. Actually, I was not even expecting it, until I read the doc
string. I think, if the documentation would be like
"Convert a string, possibly with commas as thousands separator, into a
Decimal object."
it was more clear.
Best,
Florian
--
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/0f16a066-c06e-41ad-9057-b115bde43824%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.