acos

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

expect fun acos(x: Double): Double(source)
import kotlin.math.acos

fun main() {
    val x = 0.5
    val angleInRadians = acos(x)
    println("acos($x) = $angleInRadians radians")
}

Source