FWIW, bigfloat (GNU MPFR) has arbitrary precision and rounding that can be set with `with` context managers: https://pythonhosted.org/bigfloat/
On Thursday, November 14, 2019, Greg Ewing <[email protected]> wrote: > On 15/11/19 7:39 am, Chris Angelico wrote: >> >> But in your >> source code, if you type 4.1, you are asking for the floating-point >> value > > The idea of providing decimal literals comes up from time to > time, but so far it hasn't gotten anywhere. The problem is that > it would make the core interpreter dependent on the Decimal > module. > > -- > Greg > _______________________________________________ > Python-ideas mailing list -- [email protected] > To unsubscribe send an email to [email protected] > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at https://mail.python.org/archives/list/[email protected]/message/4PYR7MP47ZFQXMPIN5AWTDHMQO5W2UK6/ > Code of Conduct: http://python.org/psf/codeofconduct/ >
_______________________________________________ Python-ideas mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/[email protected]/message/34WRUQPL6YM5L5ZP52QMDY2O7XYWU6KN/ Code of Conduct: http://python.org/psf/codeofconduct/
