single: ceil() (in module math)
single: trunc() (in module math)
pair: numeric; conversions
- pair: C; language
- Conversion from floating point to integer may round or truncate
- as in C; see functions :func:`math.floor` and :func:`math.ceil` for
- 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.
(4)
float also accepts the strings "nan" and "inf" with an optional prefix "+"