diff --git a/README.md b/README.md index ad23132..b07744b 100644 --- a/README.md +++ b/README.md @@ -487,7 +487,7 @@ Numbers = fractions.Fraction(numerator=0, denominator=1) = decimal.Decimal() ``` -* **Decimal numbers can be represented exactly, unlike floats where `'1.1 + 2.2 == 3.3000000000000003'`.** +* **Decimal numbers can be represented exactly, unlike floats where `'1.1 + 2.2 != 3.3'`.** * **Their precision can be adjusted with `'decimal.getcontext().prec = '`.** ### Basic Functions diff --git a/index.html b/index.html index 657b39f..05e99f3 100644 --- a/index.html +++ b/index.html @@ -567,7 +567,7 @@ to_exclusive = <range>.stop
    -
  • Decimal numbers can be represented exactly, unlike floats where '1.1 + 2.2 == 3.3000000000000003'.
  • +
  • Decimal numbers can be represented exactly, unlike floats where '1.1 + 2.2 != 3.3'.
  • Their precision can be adjusted with 'decimal.getcontext().prec = <int>'.

Basic Functions

<num> = pow(<num>, <num>)             # Or: <num> ** <num>