From bf653e8f8f444864a16958a6e61c01299853192d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Mon, 2 Dec 2019 12:47:35 +0100 Subject: [PATCH] Numbers --- README.md | 2 +- index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ae57100..87ebd5c 100644 --- a/README.md +++ b/README.md @@ -491,7 +491,7 @@ Numbers ``` * **`'int()'` and `'float()'` raise ValueError on malformed strings.** * **Decimal numbers can be represented exactly, unlike floats where `'1.1 + 2.2 != 3.3'`.** -* **Their precision can be adjusted with `'decimal.getcontext().prec = '`.** +* **Precision of decimal operations is set with: `'decimal.getcontext().prec = '`.** ### Basic Functions ```python diff --git a/index.html b/index.html index e779bf8..1fff3ec 100644 --- a/index.html +++ b/index.html @@ -574,7 +574,7 @@ to_exclusive = <range>.stop
  • 'int(<str>)' and 'float(<str>)' raise ValueError on malformed strings.
  • 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>'.
  • +
  • Precision of decimal operations is set with: 'decimal.getcontext().prec = <int>'.

Basic Functions

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