Correct replacement for js Math.log

The correspondent kotlin.math function is ln(x)

#KT-28251 Fixed
This commit is contained in:
Ilya Gorbunov
2018-11-16 19:09:59 +03:00
parent e81859b50d
commit 7d3de70754
+1 -1
View File
@@ -46,7 +46,7 @@ public external object Math {
public fun sqrt(value: Double): Double
@Deprecated("Use kotlin.math.tan instead.", ReplaceWith("tan(value)", "kotlin.math.tan"), level = DeprecationLevel.ERROR)
public fun tan(value: Double): Double
@Deprecated("Use kotlin.math.log instead.", ReplaceWith("log(value)", "kotlin.math.log"), level = DeprecationLevel.ERROR)
@Deprecated("Use kotlin.math.ln instead.", ReplaceWith("ln(value)", "kotlin.math.ln"), level = DeprecationLevel.ERROR)
public fun log(value: Double): Double
@Deprecated("Use kotlin.math.pow instead.", ReplaceWith("pow(base, exp)", "kotlin.math.pow"), level = DeprecationLevel.ERROR)
public fun pow(base: Double, exp: Double): Double