fractions.Decimal.to_integral

Decimal.to_integral(rounding=None, context=None)

Rounds to the nearest integer, without raising inexact, rounded.