Dynamic | functions | Web page
In this ASP's mathematical function, we will be in the form of tables, let you know about the ASP can be used in the mathematical function, which includes the absolute value of a number, the square root of a number, the angle of the sine, cosine and so on.
Function |
Grammar |
Function |
Abs |
Abs (num) |
Returns the absolute value of a number |
Sqr |
Squ (num) |
Returns the square root of a number |
Sin |
Sin (num) |
Returns the sinusoidal value of an angle |
Cos |
Cos (num) |
Returns the cosine of an angle |
Tan |
Tan (num) |
Returns the tangent of an angle |
Atn |
ATN (num) |
Returns the tangent value of an angle |
Log |
Log (num) |
Returns the pair value of a number |
Int |
Int (num) |
Returns the first integer less than or equal to number by rounding the function |
FormatNumber |
FormatNumber (NUM1,NUM2) |
A number converted to a specified number of decimal places (num2) |
Rnd |
Rnd () |
Returns a random number from 0 to 1 |
Ubound |
Ubound (array name, number of dimensions) |
Returns the maximum number of subscripts for an array, with only one dimension, and the number of dimensions can be omitted. |