Skip to content

Commit 681581d

Browse files
author
Leo
authored
Merge pull request #12844 from aathan/patch-6
Update operators.rst
2 parents cdf48de + 9d5fb1b commit 681581d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/types/operators.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ and the type of the operator's result:
1818
In case one of the operands is a :ref:`literal number <rational_literals>` it is first converted to its
1919
"mobile type", which is the smallest type that can hold the value
2020
(unsigned types of the same bit-width are considered "smaller" than the signed types).
21-
If both are literal numbers, the operation is computed with arbitrary precision.
21+
If both are literal numbers, the operation is computed with effectively unlimited precision in
22+
that the expression is evaluated to whatever precision is necessary so that none is lost
23+
when the result is used with a non-literal type.
2224

2325
The operator's result type is the same as the type the operation is performed in,
2426
except for comparison operators where the result is always ``bool``.

0 commit comments

Comments
 (0)