Share via


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.

Inheritance Hierarchy

System. . :: . .Object
  System..::..Math

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

Syntax

'Declaration
Public NotInheritable Class Math
public static class Math
public ref class Math abstract sealed
[<AbstractClass>]
[<Sealed>]
type Math =  class end
public final class Math

The Math type exposes the following members.

Methods

  Name Description
Public methodStatic member Abs(Double) Returns the absolute value of a double-precision floating-point number.
Public methodStatic member Abs(Int32) Returns the absolute value of a 32-bit signed integer.
Public methodStatic member Acos Returns the angle whose cosine is the specified number.
Public methodStatic member Asin Returns the angle whose sine is the specified number.
Public methodStatic member Atan Returns the angle whose tangent is the specified number.
Public methodStatic member Atan2 Returns the angle whose tangent is the quotient of two specified numbers.
Public methodStatic member Ceiling Returns the smallest integral value that is greater than or equal to the specified double-precision floating-point number.
Public methodStatic member Cos Returns the cosine of the specified angle.
Public methodStatic member Cosh Returns the hyperbolic cosine of the specified angle.
Public methodStatic member Exp Returns e raised to the specified power.
Public methodStatic member Floor Returns the largest integer less than or equal to the specified double-precision floating-point number.
Public methodStatic member IEEERemainder Returns the remainder resulting from the division of a specified number by another specified number.
Public methodStatic member Log Returns the natural (base e) logarithm of a specified number.
Public methodStatic member Log10 Returns the base 10 logarithm of a specified number.
Public methodStatic member Max(Double, Double) Returns the larger of two double-precision floating-point numbers.
Public methodStatic member Max(Int32, Int32) Returns the larger of two 32-bit signed integers.
Public methodStatic member Min(Double, Double) Returns the smaller of two double-precision floating-point numbers.
Public methodStatic member Min(Int32, Int32) Returns the smaller of two 32-bit signed integers.
Public methodStatic member Pow Returns a specified number raised to the specified power.
Public methodStatic member Round Rounds a double-precision floating-point value to the nearest integral value.
Public methodStatic member Sign Returns a value indicating the sign of a double-precision floating-point number.
Public methodStatic member Sin Returns the sine of the specified angle.
Public methodStatic member Sinh Returns the hyperbolic sine of the specified angle.
Public methodStatic member Sqrt Returns the square root of a specified number.
Public methodStatic member Tan Returns the tangent of the specified angle.
Public methodStatic member Tanh Returns the hyperbolic tangent of the specified angle.
Public methodStatic member Truncate Calculates the integral part of a specified double-precision floating-point number.

Top

Fields

  Name Description
Public fieldStatic member E Represents the natural logarithmic base, specified by the constant, e.
Public fieldStatic member PI Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π.

Top

Thread Safety

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

See Also

Reference

System Namespace