Re: CPython / Decimal and bit length of value.

2021-09-06 Thread jak
Il 03/09/2021 22:09, Nacnud Nac ha scritto: Hi, Is there a quick way to get the number of bits required to store the value in a Decimal class? What obvious thing am I missing? I'm working with really large integers, say, in the order of 5_000_000 of ASCII base 10 digits. It seems the function

CPython / Decimal and bit length of value.

2021-09-04 Thread Nacnud Nac via Python-list
Hi, Is there a quick way to get the number of bits required to store the value in a Decimal class?  What obvious thing am I missing? I'm working with really large integers, say, in the order of 5_000_000 of ASCII base 10 digits.  It seems the function mpd_sizeinbase would be a nice thing to be