Because the module implements http://speleotrove.com/decimal/decarith.html
On Thu, Apr 7, 2022 at 2:03 AM Greg Ewing <greg.ew...@canterbury.ac.nz> wrote: > On 7/04/22 9:53 am, Chris Angelico wrote: > > how else would you do variable-precision in the standard library? > > Maybe the mistake was in thinking that we need variable > precision at all. > > If the goal of Decimal was to provide arithmetic that > "works like your calculator", well, most calculators have > a fixed precision of 10 or so digits, which seems to be > fine for most things. > > So why *do* we have variable precision in Decimal? > > -- > Greg > _______________________________________________ > Python-ideas mailing list -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/OECXPUSG2SD3YEVEQ4OXCP7NODOYJ3XR/ > Code of Conduct: http://python.org/psf/codeofconduct/ > -- Keeping medicines from the bloodstreams of the sick; food from the bellies of the hungry; books from the hands of the uneducated; technology from the underdeveloped; and putting advocates of freedom in prisons. Intellectual property is to the 21st century what the slave trade was to the 16th.
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/MYLDUL4XCFZLYBUXXX7MIKZWMA5SQ2EI/ Code of Conduct: http://python.org/psf/codeofconduct/