https://kotlinlang.org logo
Title
t

turansky

03/20/2019, 11:52 PM
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

turansky

03/21/2019, 6:31 AM
In Pascal used pair
trunc/frac
Is it symmetric pair
truncate/frac
?
i

Ilya Goncharov [JB]

03/21/2019, 9:02 AM
Is
frac(x)
available in version 1.3.21?
i

ilya.gorbunov

03/21/2019, 11:19 AM
@Ilya Goncharov [JB] no
i

Ilya Goncharov [JB]

03/21/2019, 11:21 AM
@ilya.gorbunov Are there some information about when it will be available?
i

ilya.gorbunov

03/21/2019, 11:23 AM
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

turansky

03/22/2019, 1:05 PM
@ilya.gorbunov
fractional
or
frac
? Do you have plans to change name?