isNegative

val Int.isNegative: Boolean

Checking negativity.

Example:

10.isNegative() // false
-10.isNegative() // true

Since

1.1.0


val Long.isNegative: Boolean

Checking negativity.

Example:

10L.isNegative() // false
-10L.isNegative() // true

Since

1.1.0


val Float.isNegative: Boolean

Checking negativity.

Example:

10F.isNegative() // false
-10F.isNegative() // true

Since

1.1.0


val Double.isNegative: Boolean

Checking negativity.

Example:

10.0.isNegative() // false
-10.0.isNegative() // true

Since

1.1.0