Mark Dickinson added the comment: I think you probably don't want to use quantize here: it makes use of the current context, which means (for example) that
trunc(Decimal(integer_with_30_digits)) will fail with an InvalidOperation exception. I assume what's wanted is something that operates purely on Decimals and is unaffected by the context. Is this true? ---------- nosy: +marketdickinson __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1623> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com