toLong

Common
JVM
JS
Native
1.0
fun toLong(): Long
For Common, JVM, JS

Converts this Double value to Long.

The fractional part, if any, is rounded down towards zero. Returns zero if this Double 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.

For Native

Converts this Double value to Long.

The fractional part, if any, is rounded down. Returns zero if this Double 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.