We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6372e29 commit 405739fCopy full SHA for 405739f
Doc/library/stdtypes.rst
@@ -335,11 +335,10 @@ Notes:
335
single: ceil() (in module math)
336
single: trunc() (in module math)
337
pair: numeric; conversions
338
- pair: C; language
339
340
- Conversion from floating point to integer may round or truncate
341
- as in C; see functions :func:`math.floor` and :func:`math.ceil` for
342
- well-defined conversions.
+ Conversion from :class:`float` to :class:`int` truncates, discarding the
+ fractional part. See functions :func:`math.floor` and :func:`math.ceil` for
+ alternative conversions.
343
344
(4)
345
float also accepts the strings "nan" and "inf" with an optional prefix "+"
0 commit comments