Merge pull request #12838 from aathan/patch-1

Update value-types.rst
This commit is contained in:
chriseth 2022-03-23 18:45:05 +01:00 committed by GitHub
commit b35cda5998
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -463,7 +463,7 @@ There is no additional semantic meaning added to a number literal containing und
the underscores are ignored. the underscores are ignored.
Number literal expressions retain arbitrary precision until they are converted to a non-literal type (i.e. by Number literal expressions retain arbitrary precision until they are converted to a non-literal type (i.e. by
using them together with anything else than a number literal expression (like boolean literals) or by explicit conversion). using them together with anything other than a number literal expression (like boolean literals) or by explicit conversion).
This means that computations do not overflow and divisions do not truncate This means that computations do not overflow and divisions do not truncate
in number literal expressions. in number literal expressions.