floor

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

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

Example:

arrayOf(1.1, 1.4999999999999998, 2.9999999999999996, 2.6).floor() // [1.0, 1.0, 2.0, 2.0]

Since

1.1.0

See also

floor

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

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

Example:

listOf(1.1, 1.4999999999999998, 2.9999999999999996, 2.6).floor() // [1.0, 1.0, 2.0, 2.0]

Since

1.1.0

See also

floor