Perl cos Function
This function returns the cosine of EXPR, or $_ if EXPR is omitted. The value should be expressed in radians.
Following is the simple syntax for this function:
cos EXPR cos
This function returns floating point number.
Following is the example code showing its basic usage:
When above code is executed, it produced following result: