toLong

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

long
toLong
(
T
)
(
T x
,
Round mode = HALF_EVEN
)

Meta