truncate

fun truncate(x: Half): Half

Returns x rounded toward zero (truncation).

Return

x with the fractional part discarded

Parameters

x

the value to truncate