What is better pair methor name for `truncate`? <h...
# announcements
t
What is better pair methor name for
truncate
? https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.math/truncate.html 1.
fraction
2.
fractional
2️⃣ 2
1️⃣ 1
no red 1
Another interesting question is how to call a function that returns
x mod 1.0
or equiv.
x - floor(x)
t
In Pascal used pair
trunc/frac
Is it symmetric pair
truncate/frac
?
i
Is
frac(x)
available in version 1.3.21?
i
@Ilya Goncharov [JB] no
i
@ilya.gorbunov Are there some information about when it will be available?
i
You can follow this issue https://youtrack.jetbrains.com/issue/KT-22264, the information will appear in the Target version field when it is fixed.
t
@ilya.gorbunov
fractional
or
frac
? Do you have plans to change name?