Skip to content
ezeioDocs
  1. Reference
  2. Script reference
  3. Math and control

fcos

Find the cosine of a value

Description#

Float:fcos( Float:value )

Find the cosine of the given value.

The value is assumed to be in radians.

Parameters#

value input value (angle in radians)

Return value#

Returns the cosine of value.

Example usage#

   new Float:x;
 
   x = fcos( PI/4 );    // 0.70710...

Last updated Nov 18, 2019