VBScript Numbers

Advertisements


Description

Number functions help the developers to handle numbers in an efficient way and also helps them to convert their subtypes. It also helps them to make use of the inbuilt mathematical functions associated with VBscript.

Number Conversion Functions

Number functions help us to convert a given number from one data subtype to another data subtype.

Show Examples

FunctionDescription
CDblA Function, which converts a given number of any variant subtype to double
CIntA Function, which converts a given number of any variant subtype to Integer
CLngA Function, which converts a given number of any variant subtype to Long
CSngA Function, which converts a given number of any variant subtype to Single
HexA Function, which converts a given number of any variant subtype to Hexadecimal

Number Formating Functions

The Number formating functions help the developers to express the given number in a format that they wish to.

Show Examples

FunctionDescription
FormatNumberA Function, which would return an expression formatted as a number
FormatPercentA Function, which would return an expression formatted as a percentage

Mathematical Functions

Mathematical Functions help us to evaulate the mathematical and trigonometrical functions of a given input number.

Show Examples

FunctionDescription
IntA Function, which returns the integer part of the given number
FixA Function, which returns the integer part of the given number
LogA Function, which returns the natural logarithm of the given number. Negative numbers disallowed
OctA Function, which returns the Octal value of the given percentage
HexA Function, which returns the Hexadecimal value of the given number
RndA Function, which returns a random number between 0 and 1
SgnA Function, which returns a number corresponding to the sign of the specified number
SqrA Function, which returns the square root of the given number. Negative numbers disallowed
AbsA Function, which returns the absolute value of the given number
ExpA Function, which returns the value of e raised to the specified number
SinA Function, which returns sine value of the given number
CosA Function, which returns cosine value of the given number
TanA Function, which returns tan value of the given number


Advertisements
Advertisements