Monday, July 9, 2018

VBScript - Numbers

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.
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 Formatting Functions

The Number formatting functions help the developers to express the given number in a format that they wish to.
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 evaluate the mathematical and trigonometrical functions of a given input number.
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

No comments:

Post a Comment