W3cubDocs

/Kotlin

acos

inline fun acos(x: Double): Double

Platform and version requirements: Kotlin 1.2

inline fun acos(x: Float): Float

Platform and version requirements: Kotlin 1.2

Computes the arc cosine of the value x; the returned value is an angle in the range from 0.0 to PI radians.

Special cases: - acos(x) is NaN, when abs(x) > 1 or x is NaN

© 2010–2018 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.math/acos.html