In this asp mathematical function, we will show you the mathematical functions used in ASP in the form of tables, including the absolute value of a number and the square root of a number, the sine and cosine of the angle.
| Function |
Syntax |
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 sine of the angle. |
| Cos |
Cos (num) |
Returns the cosine of an angle. |
| Tan |
Tan (num) |
Returns the tangent of an angle. |
| Atn |
Atn (num) |
Returns the arc tangent of the angle. |
| Log |
Log (num) |
Returns the logarithm of a number. |
| Int |
Int (num) |
Returns the first integer less than or equal to number. |
| FormatNumber |
FormatNumber (num1, num2) |
Number converted to the specified number of decimal places (num2) |
| Rnd |
Rnd () |
Returns a random number ranging from 0 to 1. |
| Ubound |
Ubound (array name, dimension) |
Returns the maximum number of subscripts of an array. If the array has only one dimension, the dimension can be omitted. |