fun toLong(): Long
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
.
Converts this Float value to Long.
The fractional part, if any, is rounded down. 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
.
© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/to-long.html