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 | |
---|---|---|
Abs(Double) | Returns the absolute value of a double-precision floating-point number. | |
Abs(Int32) | Returns the absolute value of a 32-bit signed integer. | |
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. | |
Ceiling | Returns the smallest integral value that is greater than or equal to the specified double-precision floating-point number. | |
Cos | Returns the cosine of the specified angle. | |
Cosh | Returns the hyperbolic cosine of the specified angle. | |
Exp | Returns e raised to the specified power. | |
Floor | Returns the largest integer less than or equal to the specified double-precision floating-point number. | |
IEEERemainder | Returns the remainder resulting from the division of a specified number by another specified number. | |
Log | Returns the natural (base e) logarithm of a specified number. | |
Log10 | Returns the base 10 logarithm of a specified number. | |
Max(Double, Double) | Returns the larger of two double-precision floating-point numbers. | |
Max(Int32, Int32) | Returns the larger of two 32-bit signed integers. | |
Min(Double, Double) | Returns the smaller of two double-precision floating-point numbers. | |
Min(Int32, Int32) | Returns the smaller of two 32-bit signed integers. | |
Pow | Returns a specified number raised to the specified power. | |
Round | Rounds a double-precision floating-point value to the nearest integral value. | |
Sign | Returns a value indicating the sign of a double-precision floating-point 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 double-precision floating-point number. |
Top
Fields
Name | Description | |
---|---|---|
E | Represents the natural logarithmic base, specified by the constant, e. | |
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.