Knowledgebase : Technical Support > API > Client API's/VTL > VTL Client Scripts > Math Functions
SYNTAX Public Function MathMin(Number1 As Double, Number2 As Double) As Double DESCRIPTION This function is used to return the minimum number between two numbers. PARAMETERS Key Description  Number 1 The first value that wants to compare...
SYNTAX Public Function MathMax(Number1 As Double, Number2 As Double) As Double DESCRIPTION This function is used to return the maximum number between two numbers. PARAMETERS Key Description  Number 1 The first value that wants to compare...
SYNTAX Public Function MathLog10(Number As Double) As Double DESCRIPTION This function is used to return the base 10 logarithm for the given number. PARAMETERS Key Description  Number Value that wants to get the base 10 logarithm for it ...
SYNTAX Public Function MathCeil(Number As Double) As Integer DESCRIPTION This function is used to return the smallest integer greater than or equal to the given number. PARAMETERS Key Description  Number Value that wants to get the ceil ...
SYNTAX Public Function MathArcSin(Number As Double) As Double DESCRIPTION The inverse function of the sine, which is used to return the angle that has sine equal to the given number. PARAMETERS Key Description  Number Value between -1 an...
SYNTAX Public Function MathArcCos (Number As Double) As Double DESCRIPTION The inverse function of the cosine,  Which is used to return the angle that has cosine equal to the given number. PARAMETERS Key Description  Number Value between...
SYNTAX  Public Function ArrayCompare(ByRef array1 As Variant, ByRef array2 As Variant) As Integer DESCRIPTION This function is used to compare between the element of two given arrays of the same type. PARAMETERS Key Description  array1 F...
SYNTAX Public Function MathTan(Number As Double) As Double DESCRIPTION This function used to return the tangent of the specified angle. PARAMETERS Key Description  Number Angle value of type double. RETURN VALUE Returns a double value....
SYNTAX Public Function MathSqr(Number As Double) As Double DESCRIPTION This function used to return the square root of the specified given number. PARAMETERS Key Description  Number Positive numeric value of type Double. RETURN VALUE R...
SYNTAX Public Function MathSgn(Number As Variant) As Variant DESCRIPTION This function used to return the sign of the given number. PARAMETERS Key Description  Number numeric value to know the sign for it if positive or negative,value of...
SYNTAX Public Function MathSin(Number As Double) As Double DESCRIPTION This function used to return sine value for the given angle. PARAMETERS Key Description  Number Angle value ,value of type double. RETURN VALUE Returns the sine val...
SYNTAX Public Function MathRound(Number As Double, Optional digitNumber As Long) As Variant DESCRIPTION This function used to return the number rounded to the nearest specified digit. PARAMETERS Key Description  Number The specified to b...
SYNTAX Public Function MathRnd(Optional Number As Double) As Single DESCRIPTION This function is used to produce random number less than 1 but greater than or equal to zero.  PARAMETERS Key Description  Number An optional numeric value w...
SYNTAX Public Sub Randomize(Optional Number As Double) DESCRIPTION This sub procedure is used to initially seed the random number generator. Then, to generate a random number, you must use the MathRnd [http://www.hybrid-solutions.com/support/index.php?...
SYNTAX Public Function MathLog(Number As Double)As Double DESCRIPTION This function returns the logarithm for a specified given number. PARAMETERS Key Description  Number A numeric value which we want to get the Logarithm, value of type ...
SYNTAX Public Function MathExp(Number As Double)As Double DESCRIPTION This function is used to return value of E which is 2.718281828 raised to the power for a given number. PARAMETERS Key Description  Number Power value ,value of type d...
SYNTAX Public Function MathCos(Number As Double)As Double DESCRIPTION This function is used to return the cosine value for a given angle. PARAMETERS Key Description  Number The angel value to get the cos,value of type Double. RETURN VAL...
SYNTAX Public Function MathAtn(Number As Double) As Double DESCRIPTION This function is used to return the angle that has a tangent equal to a given number. PARAMETERS Key Description  Number numeric to get tan angle for it, value of typ...
SYNTAX Public Function MathAbs(Number As Variant)As Variant DESCRIPTION This function is used to returns the absolute value to a given numeric value.  PARAMETERS Key Description  Number numeric value that want to get the absolute value f...
Help Desk Software by Hybrid Solutions