@@ -0,0 +1,363 @@
+%22%22%22%0ADonot name this file as 'decimal.py',  otherwise%0Ayou will get an error: 'getcontext' is not defined%0ASee ref: https://stackoverflow.com/questions/42357610/why-i-cannot-import-getcontext-from-python-decimal-module%0A%22%22%22%0Afrom decimal import getcontext, Decimal%0Agetcontext().prec = 1%0Aa = 0.523%0Ab = 0.554%0A%0Ac1 = a + b%0Aprint(c1)%0Ac2 = Decimal(a) + Decimal(b)%0Aprint(c2)%0A

decimal floating