Copyright © tutorialspoint.com

PERL sin Function


Syntax

sin EXPR

sin


Definition and Usage

Returns the sine of EXPR, or $_ if not specified. This function always returns a floating point.

Return Value

  • Floating Point sin value of EXPR

Example

Try out following example:

#!/usr/bin/perl

$temp = sin(4);

print "sin value of 4 is $temp";

It will produces following result.

sin value of 4 is -0.756802495307928

Copyright © tutorialspoint.com