Update operators.rst

This commit is contained in:
aathan 2022-03-23 21:39:16 -07:00 committed by Leo Alt
parent e27cb025c2
commit 9d5fb1bf8b

View File

@ -18,7 +18,9 @@ and the type of the operator's result:
In case one of the operands is a :ref:`literal number <rational_literals>` it is first converted to its
"mobile type", which is the smallest type that can hold the value
(unsigned types of the same bit-width are considered "smaller" than the signed types).
If both are literal numbers, the operation is computed with arbitrary precision.
If both are literal numbers, the operation is computed with effectively unlimited precision in
that the expression is evaluated to whatever precision is necessary so that none is lost
when the result is used with a non-literal type.
The operator's result type is the same as the type the operation is performed in,
except for comparison operators where the result is always ``bool``.