function round
source · line 127public
public fun round(x: Float): Int
Rounds to the nearest integer with ties toward positive infinity; overflow saturates and NaN becomes zero.
parameter x
source · line 127public
x: Float
scoop:scoop.math:0.1.0
public fun round(x: Float): Int
Rounds to the nearest integer with ties toward positive infinity; overflow saturates and NaN becomes zero.
x: Float
public fun round(x: Double): Long
Rounds to the nearest integer with ties toward positive infinity; overflow saturates and NaN becomes zero.
x: Double