fun toInt(): Int
Converts this Double value to Int.
The fractional part, if any, is rounded down towards zero. Returns zero if this Double value is NaN, Int.MIN_VALUE if it's less than Int.MIN_VALUE, Int.MAX_VALUE if it's bigger than Int.MAX_VALUE.
© 2010–2023 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/-double/to-int.html