toLong

expect open override fun toLong(): Long(source)

Converts this Float value to Long.

The fractional part, if any, is rounded down towards zero. Returns zero if this Float value is NaN, Long.MIN_VALUE if it's less than Long.MIN_VALUE, Long.MAX_VALUE if it's bigger than Long.MAX_VALUE.

Since Kotlin

1.0
actual open override fun toLong(): Long(source)

Converts this Float value to Long.

The fractional part, if any, is rounded down towards zero. Returns zero if this Float value is NaN, Long.MIN_VALUE if it's less than Long.MIN_VALUE, Long.MAX_VALUE if it's bigger than Long.MAX_VALUE.

Since Kotlin

1.1
open override fun toLong(): Long(source)

Converts this Float value to Long.

The fractional part, if any, is rounded down towards zero. Returns zero if this Float value is NaN, Long.MIN_VALUE if it's less than Long.MIN_VALUE, Long.MAX_VALUE if it's bigger than Long.MAX_VALUE.

Since Kotlin

1.0
actual open external override fun toLong(): Long(source)

Converts this Float value to Long.

The fractional part, if any, is rounded down towards zero. Returns zero if this Float value is NaN, Long.MIN_VALUE if it's less than Long.MIN_VALUE, Long.MAX_VALUE if it's bigger than Long.MAX_VALUE.

Since Kotlin

1.3
actual open override fun toLong(): Long(source)

Converts this Float value to Long.

The fractional part, if any, is rounded down towards zero. Returns zero if this Float value is NaN, Long.MIN_VALUE if it's less than Long.MIN_VALUE, Long.MAX_VALUE if it's bigger than Long.MAX_VALUE.

Since Kotlin

1.8
actual open override fun toLong(): Long(source)

Converts this Float value to Long.

The fractional part, if any, is rounded down towards zero. Returns zero if this Float value is NaN, Long.MIN_VALUE if it's less than Long.MIN_VALUE, Long.MAX_VALUE if it's bigger than Long.MAX_VALUE.

Since Kotlin

1.8