ID EN
Decimal

to_integral_value

Python 3.11

Round to the nearest integer without signaling Inexact or Rounded. If given, applies rounding; otherwise, uses the rounding method in either the supplied context or the current context.

Syntax

PYTHON
to_integral_value(rounding=None, context=None)

See Also

Inexact Rounded