inline fun ceil(x: Double): Double
Platform and version requirements: Kotlin 1.2
Rounds the given value x to an integer towards positive infinity.
Return
the smallest double value that is greater than the given value x and is a mathematical integer.
Special cases:
ceil(x)
is x
where x
is NaN
or +Inf
or -Inf
or already a mathematical integer.inline fun ceil(x: Float): Float
Platform and version requirements: Kotlin 1.2
Rounds the given value x to an integer towards positive infinity.
Return
the smallest Float value that is greater than the given value x and is a mathematical integer.
Special cases:
ceil(x)
is x
where x
is NaN
or +Inf
or -Inf
or already a mathematical integer.
© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.math/ceil.html