util.Math methods

Methods for the util.Math class.

Table 1. Class methods
Name Description
util.Math.acos(
   val FLOAT )
  RETURNING result FLOAT
Computes the arc cosine of the passed value, measured in radians.
util.Math.asin(
   val FLOAT )
  RETURNING result FLOAT
Computes the arc sine of the passed value, measured in radians.
util.Math.atan(
   val FLOAT )
  RETURNING result FLOAT
Computes the arc tangent of the passed value, measured in radians.
util.Math.cos(
   val FLOAT )
  RETURNING result FLOAT
Computes the cosine of the passed value, measured in radians.
util.Math.exp(
   val FLOAT )
  RETURNING result FLOAT
Computes the base-e exponential of the value passed as parameter.
util.Math.log(
   val FLOAT )
  RETURNING result FLOAT
Computes the natural logarithm of the passed value.
util.Math.pi()
  RETURNING result FLOAT
Returns the FLOAT value of PI.
util.Math.pow(
   x FLOAT,
   y FLOAT )
  RETURNING result FLOAT
Computes the value of x raised to the power y.
util.Math.rand(
   max INTEGER )
  RETURNING result INTEGER
Returns a positive pseudo-random number.
util.Math.sin(
   val FLOAT )
  RETURNING result FLOAT
Computes the sine of the passed value, measured in radians.
util.Math.sqrt(
   val FLOAT )
  RETURNING result FLOAT
Returns the square root of the argument provided.
util.Math.srand()
Initializes the pseudo-random numbers generator.
util.Math.tan(
   val FLOAT )
  RETURNING result FLOAT
Computes the tangent of the passed value, measured in radians.
util.Math.toDegrees(
   val FLOAT )
  RETURNING result FLOAT
Converts an angle measured in radians to an approximately equivalent angle measured in degrees.
util.Math.toRadians(
   val FLOAT )
  RETURNING result FLOAT
Converts an angle measured in degrees to an approximately equivalent angle measured in radians.