Tutorials Point


  Perl Home

  PERL Functions

© 2013 TutorialsPoint.COM


  Home     References     About TP     Advertising  

PERL sin Function



Advertisements

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


Advertisements


  

Advertisements