A.14. Math Functions

Abs Function

Returns the absolute value of a given number

Atn Function

Returns the arctangent of a number

Cos Function

Returns the cosine of an angle

Exp Function

Returns the base of a natural logarithm raised to a power

Log Function

Returns the natural logarithm of a number

Randomize Statement

Initializes the random number generator

Rnd Function

Returns a random number

Sgn Function

Returns an integer indicating the sign of a number

Sin Function

Returns the sine of an angle

Sqr Function

Returns the square root of a number

Tan Function

Returns the tangent of an angle

Get VB & VBA in a Nutshell: The Language now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.