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)isxwherexisNaNor+Infor-Infor 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)isxwherexisNaNor+Infor-Infor 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)isxwherexisNaNor+Infor-Infor already a mathematical integer.