The Fix for bug #584 -- 
https://github.com/beancount/beancount/commit/4c1e87bb5a6883f8217a495de5d0ddae109aa289
 
-- introduced the code:

# Allow precision for numbers as large as 1 billion in addition to
# the required number of fractional digits.
#
# TODO(blais): Review this to assess performance impact, and whether
# we could fold this outside a calling loop.
ctx.prec = num_fractional_digits + 9

The result is that any amount over 1 billion (e.g. in a bean-query) results 
in an exception:

decimal.InvalidOperation: [<class 'decimal.InvalidOperation'>]

For my personal usage I can just increase the 9 to a 12 or whatever I need 
but I wanted to ask if there's a better approach so I can try to submit an 
actual patch?

Cheers,
Justus

-- 
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 visit 
https://groups.google.com/d/msgid/beancount/2d2e78cb-8352-4ebc-a366-fd508a4e509fn%40googlegroups.com.

Reply via email to