ceil

inline fun <T : Number> Array<T>.ceil(): DoubleArray

Rounds the given value Array to an integer towards positive infinity.

Example:

arrayOf(1.1, 1.4999999999999998, 2.9999999999999996, 2.6).ceil() // [2.0, 2.0, 3.0, 3.0]

Since

1.1.0

See also

ceil

inline fun <T : Number> Iterable<T>.ceil(): Iterable<Double>

Rounds the given value Iterable to an integer towards positive infinity.

Example:

listOf(1.1, 1.4999999999999998, 2.9999999999999996, 2.6).ceil() // [2.0, 2.0, 3.0, 3.0]

Since

1.1.0

See also

ceil