Rexx - cos Command


Advertisements

This command is used to get the cosine conversion of a number.

Syntax

cos(value) 

Parameters

  • value − The value as an input to the cosine function.

Return Value

This method returns the cosine value of the inputed number.

Example

/* Main program */ 
say cos(45) 

When we run the above program we will get the following result.

Output

0.52532199 
rexx_brexx.htm
Advertisements