Promote top-level kotlin.math.cbrt() to stable #KT-53277
This commit is contained in:
committed by
Space
parent
0763ab7bc1
commit
73a65c1bb1
@@ -474,8 +474,8 @@ public actual inline fun max(a: Double, b: Double): Double = nativeMath.max(a, b
|
||||
* - If the argument is infinite, then the result is an infinity with the same sign as the argument.
|
||||
* - If the argument is zero, then the result is a zero with the same sign as the argument.
|
||||
*/
|
||||
@SinceKotlin("1.7")
|
||||
@ExperimentalStdlibApi
|
||||
@SinceKotlin("1.8")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@InlineOnly
|
||||
public actual inline fun cbrt(x: Double): Double = nativeMath.cbrt(x)
|
||||
|
||||
@@ -1021,8 +1021,8 @@ public actual inline fun max(a: Float, b: Float): Float = nativeMath.max(a, b)
|
||||
* - If the argument is infinite, then the result is an infinity with the same sign as the argument.
|
||||
* - If the argument is zero, then the result is a zero with the same sign as the argument.
|
||||
*/
|
||||
@SinceKotlin("1.7")
|
||||
@ExperimentalStdlibApi
|
||||
@SinceKotlin("1.8")
|
||||
@WasExperimental(ExperimentalStdlibApi::class)
|
||||
@InlineOnly
|
||||
public actual inline fun cbrt(x: Float): Float = nativeMath.cbrt(x.toDouble()).toFloat()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user