Math Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides constants and static methods for trigonometric, logarithmic, and other common mathematical functions.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public NotInheritable Class Math

The Math type exposes the following members.

  NameDescription
Public methodStatic memberAbs(Double)Returns the absolute value of a double-precision floating-point number.
Public methodStatic memberAbs(Int32)Returns the absolute value of a 32-bit signed integer.
Public methodStatic memberAcosReturns the angle whose cosine is the specified number.
Public methodStatic memberAsinReturns the angle whose sine is the specified number.
Public methodStatic memberAtanReturns the angle whose tangent is the specified number.
Public methodStatic memberAtan2Returns the angle whose tangent is the quotient of two specified numbers.
Public methodStatic memberCeilingReturns the smallest integral value that is greater than or equal to the specified double-precision floating-point number.
Public methodStatic memberCosReturns the cosine of the specified angle.
Public methodStatic memberCoshReturns the hyperbolic cosine of the specified angle.
Public methodStatic memberExpReturns e raised to the specified power.
Public methodStatic memberFloorReturns the largest integer less than or equal to the specified double-precision floating-point number.
Public methodStatic memberIEEERemainderReturns the remainder resulting from the division of a specified number by another specified number.
Public methodStatic memberLogReturns the natural (base e) logarithm of a specified number.
Public methodStatic memberLog10Returns the base 10 logarithm of a specified number.
Public methodStatic memberMax(Double, Double)Returns the larger of two double-precision floating-point numbers.
Public methodStatic memberMax(Int32, Int32)Returns the larger of two 32-bit signed integers.
Public methodStatic memberMin(Double, Double)Returns the smaller of two double-precision floating-point numbers.
Public methodStatic memberMin(Int32, Int32)Returns the smaller of two 32-bit signed integers.
Public methodStatic memberPowReturns a specified number raised to the specified power.
Public methodStatic memberRoundRounds a double-precision floating-point value to the nearest integral value.
Public methodStatic memberSignReturns a value indicating the sign of a double-precision floating-point number.
Public methodStatic memberSinReturns the sine of the specified angle.
Public methodStatic memberSinhReturns the hyperbolic sine of the specified angle.
Public methodStatic memberSqrtReturns the square root of a specified number.
Public methodStatic memberTanReturns the tangent of the specified angle.
Public methodStatic memberTanhReturns the hyperbolic tangent of the specified angle.
Public methodStatic memberTruncateCalculates the integral part of a specified double-precision floating-point number.
Top

  NameDescription
Public fieldStatic memberERepresents the natural logarithmic base, specified by the constant, e.
Public fieldStatic memberPIRepresents the ratio of the circumference of a circle to its diameter, specified by the constant, π.
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: