← Docs
kotlin-stdlib / kotlin.math / acos

acos

Common
JVM
JS
Native
1.2
fun acos ( x : Double ) : Double
(Common source) (JVM source) (JS source) (Native source)
fun acos ( x : Float ) : Float
(Common source) (JVM source) (JS source) (Native source)

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

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .