round

fun round(x: Half): Half

Returns x rounded to the nearest integer value as a Half.

Ties round away from zero.

Return

the nearest integer Half, or NaN/Infinity unchanged

Parameters

x

the value to round