Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa63c4d

Browse files
committed
Fix mild type confusion in decimal module docstring.
1 parent fdb99f1 commit aa63c4d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/decimal.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
useful for financial applications or for contexts where users have
3232
expectations that are at odds with binary floating point (for instance,
3333
in binary floating point, 1.00 % 0.1 gives 0.09999999999999995 instead
34-
of the expected Decimal('0.00') returned by decimal floating point).
34+
of 0.0; Decimal('1.00') % Decimal('0.1') returns the expected
35+
Decimal('0.00')).
3536
3637
Here are some examples of using the decimal module:
3738

0 commit comments

Comments
 (0)