cos()

Deprecated in 5.0.

Please use Math::Cos instead.

cos(x): float

Calculates cosine from given angle in radians.

Table 1. Parameters

x

Float

Angle in rad

Return

Result of cosine for this angle

print(cos(0.5)); //will print 0.877583