I don’t understand ceil, floor, round functions in...
# stdlib
g
I don’t understand ceil, floor, round functions in the version 1.2 of the lib. The doc says :
Rounds the given value [a] to an integer towards negative infinity.
and the implementation (js) is:
Copy code
public inline fun floor(a: Double): Double = nativeMath.floor(a).unsafeCast<Double>()
Why returning a Double and not an Int?