Cos (open)

Returns the cosine of a value.

Syntax

LOADLIB "wh::float.whlib";

FLOAT FUNCTION Cos(FLOAT value)

Parameters

FLOAT value

The FLOAT value (in radians) from which to determine the cosine

Return value

FLOAT

The cosine of @italic value

Examples

// The FLOAT value will be 0.0
FLOAT f := Cos(0.5 * PI);