ROUTMIO_DEV

TOOLS

DDL GeneratorDDL → ERDDummy Data GeneratorRegex TesterJSON FormatterBase64 ConverterTimestamp ConverterCron BuilderMeeting Minutes

DATABASE

LANGUAGE

Kotlin Number

12 functions

abskotlin.math.abs(x)

Returns the absolute value of the given value.

maxkotlin.math.max(a, b) / maxOf(a, b)

Returns the greater of two values.

minkotlin.math.min(a, b) / minOf(a, b)

Returns the smaller of two values.

powx.toDouble().pow(n)

Raises this value to the power n.

sqrtkotlin.math.sqrt(x)

Computes the positive square root of the value.

ceilkotlin.math.ceil(x)

Rounds the given value toward positive infinity.

floorkotlin.math.floor(x)

Rounds the given value toward negative infinity.

roundkotlin.math.round(x)

Rounds the given value to the nearest integer.

toIntvalue.toInt()

Converts this value to Int.

toDoublevalue.toDouble()

Converts this value to Double.

toStringvalue.toString(radix?)

Returns a string representation of the object.

coerceInvalue.coerceIn(min, max)

Ensures that this value lies in the specified range.

Terms of ServicePrivacy PolicyContactIcons by Flaticon