util.Math methods

Methods for the util.Math class.

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