121

Built-In Functions
Arithmetic Functions

  • All of the arithmetic functions return a single (scalar) computed value

  • The native machine's floating-point representation is used by default
    (See " Math::BigFLoat " for alternative representations)

      Function Description
      atan2(Y,X) Arctan(Y/X) from -pi to pi
      cos(RAD) Cosine of radians value
      exp(EXPR) e to the power
      int(EXPR) Integer portion of a number
      log(EXPR) Natural log (base e)
      rand(EXPR) Number from 0 to EXPR
      sin(RAD) Sine of radians value
      sqrt(EXPR) Square root
      srand(EXPR) Set the random seed for rand()