# Classic ASP Framework org.classicasp.util.MathUtilEx

Math utilities.

## Summary

 absEx Computes and returns an absolute value for the number specified by the parameter. acosEx Computes and returns the arc cosine of the number specified in the parameter. acotEx Computes and returns the arc cotangent of the number specified in the parameter. acscEx Computes and returns the arc cosecant of the number specified in the parameter. asecEx Computes and returns the arc secant of the number specified in the parameter. asinEx Computes and returns the arc sine for the number specified in the parameter. atanEx Computes and returns the value, of the angle whose tangent is specified in the parameter. ceilEx Returns the ceiling of the specified number. cosEx Computes and returns the cosine of the specified angle. expEx Returns the value of the base of the natural logarithm (e), to the power of the exponent specified in the parameter. floorEx Returns the floor of the number or expression specified in the parameter. logEx Returns the natural logarithm of the parameter. maxEx Returns the largest number in the array. minEx Returns the smallest number in the array. powEx Computes and returns base to the power of pow. randomEx Returns a pseudo-random number n. roundEx Rounds the value of the parameter val up or down to the nearest integer and returns the value. sinEx Computes and returns the sine of the specified angle. sqrtEx Computes and returns the square root of the specified number. tanEx Computes and returns the tangent of the specified angle. [CONST] MathUtilEx.E A mathematical constant for the base of natural logarithms, expressed as e. [CONST] MathUtilEx.LN10 A mathematical constant for the natural logarithm of 10, expressed as loge10, with an approximate value of 2. [CONST] MathUtilEx.LN2 A mathematical constant for the natural logarithm of 2, expressed as loge2, with an approximate value of 0. [CONST] MathUtilEx.LOG10E A mathematical constant for the base-10 logarithm of the constant e (Math. [CONST] MathUtilEx.LOG2E A mathematical constant for the base-2 logarithm of the constant e, expressed as log2e, with an approximate value of 1. [CONST] MathUtilEx.PI A mathematical constant for the ratio of the circumference of a circle to its diameter, expressed as pi, with a value of 3. [CONST] MathUtilEx.SQRT1_2 A mathematical constant for the square root of one-half, with an approximate value of 0. [CONST] MathUtilEx.SQRT2 A mathematical constant for the square root of 2, with an approximate value of 1.

### absEx

Public Function absEx(ByVal nValue)
Computes and returns an absolute value for the number specified by the parameter.

NumberEx

### acosEx

Public Function acosEx(ByVal nValue)
Computes and returns the arc cosine of the number specified in the parameter.

NumberEx

### acotEx

Public Function acotEx(ByVal nValue)
Computes and returns the arc cotangent of the number specified in the parameter.

NumberEx

### acscEx

Public Function acscEx(ByVal nValue)
Computes and returns the arc cosecant of the number specified in the parameter.

NumberEx

### asecEx

Public Function asecEx(ByVal nValue)
Computes and returns the arc secant of the number specified in the parameter.

NumberEx

### asinEx

Public Function asinEx(ByVal nValue)
Computes and returns the arc sine for the number specified in the parameter.

NumberEx

### atanEx

Public Function atanEx(ByVal nValue)
Computes and returns the value, of the angle whose tangent is specified in the parameter.

NumberEx

### ceilEx

Public Function ceilEx(ByVal nValue)
Returns the ceiling of the specified number.

NumberEx

### cosEx

Public Function cosEx(ByVal nValue)
Computes and returns the cosine of the specified angle.

NumberEx

### expEx

Public Function expEx(ByVal nValue)
Returns the value of the base of the natural logarithm (e), to the power of the exponent specified in the parameter.

NumberEx

### floorEx

Public Function floorEx(ByVal nValue)
Returns the floor of the number or expression specified in the parameter.

NumberEx

### logEx

Public Function logEx(ByVal nValue)
Returns the natural logarithm of the parameter.

NumberEx

### maxEx

Public Function maxEx(ByVal aValue)
Returns the largest number in the array.

NumberEx

### minEx

Public Function minEx(ByVal aValue)
Returns the smallest number in the array.

NumberEx

### powEx

Public Function powEx(
ByVal nBase,
ByVal nPow)
Computes and returns base to the power of pow.

NumberEx

### randomEx

Public Function randomEx()
Returns a pseudo-random number n.

NumberEx

### roundEx

Public Function roundEx(ByVal nValue)
Rounds the value of the parameter val up or down to the nearest integer and returns the value.

NumberEx

### sinEx

Public Function sinEx(ByVal nValue)
Computes and returns the sine of the specified angle.

NumberEx

### sqrtEx

Public Function sqrtEx(ByVal nValue)
Computes and returns the square root of the specified number.

NumberEx

### tanEx

Public Function tanEx(ByVal nValue)
Computes and returns the tangent of the specified angle.

NumberEx

### [CONST] MathUtilEx.E

A mathematical constant for the base of natural logarithms, expressed as e.

NumberEx

### [CONST] MathUtilEx.LN10

A mathematical constant for the natural logarithm of 10, expressed as loge10, with an approximate value of 2.302585092994046.

NumberEx

### [CONST] MathUtilEx.LN2

A mathematical constant for the natural logarithm of 2, expressed as loge2, with an approximate value of 0.6931471805599453.

NumberEx

### [CONST] MathUtilEx.LOG10E

A mathematical constant for the base-10 logarithm of the constant e (Math.E), expressed as log10e, with an approximate value of 0.4342944819032518.

NumberEx

### [CONST] MathUtilEx.LOG2E

A mathematical constant for the base-2 logarithm of the constant e, expressed as log2e, with an approximate value of 1.442695040888963387.

NumberEx

### [CONST] MathUtilEx.PI

A mathematical constant for the ratio of the circumference of a circle to its diameter, expressed as pi, with a value of 3.141592653589793.

NumberEx

### [CONST] MathUtilEx.SQRT1_2

A mathematical constant for the square root of one-half, with an approximate value of 0.7071067811865476.

NumberEx

### [CONST] MathUtilEx.SQRT2

A mathematical constant for the square root of 2, with an approximate value of 1.4142135623730951.

#### Returns

NumberEx

'***ClassicASP.org

'This file is part of ClassicASP Framework.

'ClassicASP-Framework is free software: you can redistribute it and/or modify