Here is a list of math functions you can use in Visual Studio's latest version. The functions in bold are available to use in the 2005 version of Visual Studio. Click the function name to link to the Microsoft Developer Network Documentation for functions.

Function

Description

Abs

Returns the absolute value of a number.

Acos

Returns the angle whose cosine is the specified number.

Asin

Returns the angle whose sine is the specified number.

Atan

Returns the angle whose tangent is the specified number.

Atan2

Returns the angle whose tangent is the quotient of two specified numbers.

BigMul

Returns the full product of two 32-bit numbers.

Ceiling

Returns the smallest integral value that's greater than or equal to the specified Decimal or Double.

Cos

Returns the cosine of the specified angle.

Cosh

Returns the hyperbolic cosine of the specified angle.

DivRem

Returns the quotient of two 32-bit or 64-bit signed integers, and also returns the remainder in an output parameter.

Exp

Returns e (the base of natural logarithms) raised to the specified power.

Floor

Returns the largest integer that's less than or equal to the specified Decimal or Double number.

IEEERemainder

Returns the remainder that results from the division of a specified number by another specified number.

Log

Returns the natural (base e) logarithm of a specified number or the logarithm of a specified number in a specified base.

Log10

Returns the base 10 logarithm of a specified number.

Max

Returns the larger of two numbers.

Min

Returns the smaller of two numbers.

Pow

Returns a specified number raised to the specified power.

Round

Returns a Decimal or Double value rounded to the nearest integral value or to a specified number of fractional digits.

Sign

Returns an Integer value indicating the sign of a number.

Sin

Returns the sine of the specified angle.

Sinh

Returns the hyperbolic sine of the specified angle.

Sqrt

Returns the square root of a specified number.

Tan

Returns the tangent of the specified angle.

Tanh

Returns the hyperbolic tangent of the specified angle.

Truncate

Calculates the integral part of a specified Decimal or Double number.