truncate
Rounds the given value x to an integer towards zero.
Since Kotlin
1.2Return
the value x having its fractional part truncated.
Special cases:
truncate(x)
isx
wherex
isNaN
or+Inf
or-Inf
or already a mathematical integer.
Rounds the given value x to an integer towards zero.
Since Kotlin
1.2Return
the value x having its fractional part truncated.
Special cases:
truncate(x)
isx
wherex
isNaN
or+Inf
or-Inf
or already a mathematical integer.
Rounds the given value x to an integer towards zero.
Since Kotlin
1.2Return
the value x having its fractional part truncated.
Special cases:
truncate(x)
isx
wherex
isNaN
or+Inf
or-Inf
or already a mathematical integer.