Numeric functions

Name Explanation
abs  
atan2 pi = atan2(1, 1) * 4
cos EXPR in radians
exp e to the power of EXPR.
  The ** operator does general exponentiations.
hex Interprets EXPR as a hex-string
  and returns a decimal number
  Inverse: $str = sprintf "%lx", $i; # an ell
int The integer portion of EXPR
log base e
oct Interprets EXPR as an octal string
  and returns a decimal number
  $val = oct $val if $val =~ /^0/;
  Inverse: sprintf "%lo", $i; # an ell
rand Returns a random fractional number
  between 0 and EXPR (or 1)
sin EXPR in radians
sqrt  
srand Sets the random seed,
  default: srand( time);