Cos()

Syntax

Result.f = Cos(Angle.f)
Description
Returns the cosine of the specified angle.

Parameters

Angle.f The input angle in radians. Use Radian() to convert an angle from degrees to radian.

Return value

Returns the cosine of the angle. The result is always between -1 and 1.

Remarks

The inverse function of Cos() is ACos(). This function can handle float and double values.

Example

  Debug Cos(3.141593) ; will display '-1'

See Also

ACos(), CosH(), Radian()

Supported OS

All

<- Abs() - Math Index - CosH() ->