Skip to content

Commit 9d5fb1b

Browse files
aathanLeo Alt
authored andcommitted
Update operators.rst
1 parent e27cb02 commit 9d5fb1b

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)