diff --git a/README.md b/README.md index 5ac2a5f..42dc8e1 100644 --- a/README.md +++ b/README.md @@ -483,7 +483,7 @@ Numbers = float() = complex(real=0, imag=0) # Or: + j = fractions.Fraction(numerator=0, denominator=1) - = decimal.Decimal() + = decimal.Decimal() ``` * **`'int()'` and `'float()'` raise ValueError on malformed strings.** * **Decimal numbers can be represented exactly, unlike floats where `'1.1 + 2.2 != 3.3'`.** diff --git a/index.html b/index.html index cf92422..9a0f219 100644 --- a/index.html +++ b/index.html @@ -560,7 +560,7 @@ to_exclusive = <range>.stop <float> = float(<int/str/bool>) <complex> = complex(real=0, imag=0) # Or: <real> + <real>j <Fraction> = fractions.Fraction(numerator=0, denominator=1) -<Decimal> = decimal.Decimal(<int/float/str>) +<Decimal> = decimal.Decimal(<str/int/float>)