toInt

Returns the nearest integer value. If the value is greater (less) than the maximum (minimum) int value the maximum (minimum) value is returned. The value is rounded based on the specified rounding mode. The default mode is half-even.

int
toInt
(
T
)
(
T x
,
Round mode = HALF_EVEN
)

Meta