This function returns the sine of EXPR, or $_ if not specified. This function always returns a floating point.
Following is the simple syntax for this function −
sin EXPR sin
This function returns the Floating Point sin value of EXPR
Following is the example code showing its basic usage −
#!/usr/bin/perl $temp = sin(4); print "sin value of 4 is $temp";
When above code is executed, it produces the following result −
sin value of 4 is -0.756802495307928