Math Functions
Shows Perl math functions providing examples of how to use the functions and what they do.
If an expression is not passed to many of these functions, except where noted, the $_ value is used by default.
abs
The statement:
abs 100
evaluates to the value, 100.
atan2
This function returns the inverse tangent in radians. The returned value is pi to +pi.
actan2 a,b
cos
The cosine in radians is returned.
cos VALUE
exp
Returns a value of the exponent (e) to the power of the passed value.
exp VALUE
int
Convert the value to an integer and truncate it if necessary.
int VALUE
