isPositive

val Int.isPositive: Boolean

Checking positivity.

Example:

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

Since

1.5.1


val Long.isPositive: Boolean

Checking positivity.

Example:

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

Since

1.5.1


val Float.isPositive: Boolean

Checking positivity.

Example:

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

Since

1.5.1


val Double.isPositive: Boolean

Checking positivity.

Example:

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

Since

1.5.1