| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -335,11 +335,10 @@ Notes: | |||
| 335 | 335 | single: ceil() (in module math) | |
| 336 | 336 | single: trunc() (in module math) | |
| 337 | 337 | pair: numeric; conversions | |
| 338 | - pair: C; language | ||
| 339 | 338 | ||
| 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. | ||
| 339 | + Conversion from :class:`float` to :class:`int` truncates, discarding the | ||
| 340 | + fractional part. See functions :func:`math.floor` and :func:`math.ceil` for | ||
| 341 | + alternative conversions. | ||
| 343 | 342 | ||
| 344 | 343 | (4) | |
| 345 | 344 | float also accepts the strings "nan" and "inf" with an optional prefix "+" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments