Tutorials Point


  Perl Home

  PERL Functions

© 2011 TutorialsPoint.COM


  Home     References     About TP     Advertising  

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


Printer Friendly



  

Advertisement

Online Image Processing

Indian Baby Names