On May 1, 2013, at 6:39 PM, Paul McNett <[email protected]> wrote:
> I just wrote some test cases to show that indeed, Dabo does convert float to
> decimal.
Of course; that's not the question. The question is why it throws an
exception in Max's situation:
[snip]
File "/home/max/projekte/kolibrill/dabo/dabo/db/dCursorMixin.py", line
278, in _correctFieldType
return dec.quantize(Decimal("0.%s" % (scale * "0",)))
File "/usr/lib/python2.6/decimal.py", line 2358, in quantize
'quantize result has too many digits for current context')
File "/usr/lib/python2.6/decimal.py", line 3778, in _raise_error
raise error(explanation)
decimal.InvalidOperation: quantize result has too many digits for
current context
-- Ed Leafe
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message:
http://leafe.com/archives/byMID/[email protected]