﻿ ﻿
﻿

Built-in Math Functions

This section provides a list of commonly used built-in math functions.

﻿

VBScript supports the following commonly used math functions:

• Abs(vNumber) - Returns the absolute value of a specified number
• Atn(vNumber) - Returns the arctangent of a specified number
• Cos(vNumber) - Returns the cosine of a specified number (angle)
• Exp(vPower) - Returns e raised to a power
• Hex(vNumber) - Returns the hexadecimal value of a specified number
• Int(vNumber) - Returns the integer part of a specified number
• Fix(vNumber) - Returns the integer part of a specified number
• Log(vNumber) - Returns the natural logarithm of a specified number
• Oct(vNumber) - Returns the octal value of a specified number
• Rnd() - Returns a random number less than 1 but greater or equal to 0
• Sgn(vNumber) - Returns an integer that indicates the sign of a specified number
• Sin(vNumber) - Returns the sine of a specified number (angle)
• Sqr(vNumber) - Returns the square root of a specified number
• Tan(vNumber) - Returns the tangent of a specified number (angle)

﻿

﻿ ﻿