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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.