Returns the angle whose cosine is the specified number.

Syntax

Smartsite SXML CopyCode image Copy Code
float math.acos(float a)

Parameters

Name Data Type Description
a Float A number representing a cosine, where -1 ≤A≤ 1.

Return Value

Data Type Description
Float An angle, θ, measured in radians, such that 0 ≤ θ ≤ π -or- NaN ifA< -1 orA> 1.

Expand image Remarks

Expand image Example

SXML