System.Math Members

The members of System.Math are listed below.

See Also: Inherited members from System.Object

Public Fields

const
Edouble (2.71828182845905).

Represents the natural logarithmic base, specified by the constant, e.

const
PIdouble (3.14159265358979).

Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π.

Public Methods

static
Abs(decimal) : decimal

Returns the absolute value of a decimal number.

static
Abs(double) : double

Returns the absolute value of a double-precision floating-point number.

static
Abs(short) : short

Returns the absolute value of a 16-bit signed integer.

static
Abs(int) : int

Returns the absolute value of a 32-bit signed integer.

static
Abs(long) : long

Returns the absolute value of a 64-bit signed integer.

static
Abs(sbyte) : sbyte

Returns the absolute value of an 8-bit signed integer.

static
Abs(float) : float

Returns the absolute value of a single-precision floating-point number.

static
Acos(double) : double

Returns the angle whose cosine is the specified number.

static
Asin(double) : double

Returns the angle whose sine is the specified number.

static
Atan(double) : double

Returns the angle whose tangent is the specified number.

static
Atan2(double, double) : double

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

static
BigMul(int, int) : long

Produces the full product of two 32-bit numbers.

static
Ceiling(decimal) : decimal

Returns the smallest integral value that is greater than or equal to the specified decimal number.

static
Ceiling(double) : double

Returns the smallest integral value that is greater than or equal to the specified double-precision floating-point number.

static
Cos(double) : double

Returns the cosine of the specified angle.

static
Cosh(double) : double

Returns the hyperbolic cosine of the specified angle.

static
DivRem(int, int, out int) : int
Returns the quotient of two numbers, also passing the remainder as an output parameter.
static
DivRem(long, long, out long) : long
Returns the quotient of two numbers, also passing the remainder as an output parameter.
static
Exp(double) : double

Returns e raised to the specified power.

static
Floor(decimal) : decimal

Returns the largest integer less than or equal to the specified decimal number.

static
Floor(double) : double

Returns the largest integer less than or equal to the specified double-precision floating-point number.

static
IEEERemainder(double, double) : double

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

static
Log(double) : double

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

static
Log(double, double) : double

Returns the logarithm of a specified number in a specified base.

static
Log10(double) : double

Returns the base 10 logarithm of a specified number.

static
Max(byte, byte) : byte

Returns the larger of two 8-bit unsigned integers.

static
Max(decimal, decimal) : decimal

Returns the larger of two decimal numbers.

static
Max(double, double) : double

Returns the larger of two double-precision floating-point numbers.

static
Max(short, short) : short

Returns the larger of two 16-bit signed integers.

static
Max(int, int) : int

Returns the larger of two 32-bit signed integers.

static
Max(long, long) : long

Returns the larger of two 64-bit signed integers.

static
Max(sbyte, sbyte) : sbyte

Returns the larger of two 8-bit signed integers.

static
Max(float, float) : float

Returns the larger of two single-precision floating-point numbers.

static
Max(ushort, ushort) : ushort

Returns the larger of two 16-bit unsigned integers.

static
Max(uint, uint) : uint

Returns the larger of two 32-bit unsigned integers.

static
Max(ulong, ulong) : ulong

Returns the larger of two 64-bit unsigned integers.

static
Min(byte, byte) : byte

Returns the smaller of two 8-bit unsigned integers.

static
Min(decimal, decimal) : decimal

Returns the smaller of two decimal numbers.

static
Min(double, double) : double

Returns the smaller of two double-precision floating-point numbers.

static
Min(short, short) : short

Returns the smaller of two 16-bit signed integers.

static
Min(int, int) : int

Returns the smaller of two 32-bit signed integers.

static
Min(long, long) : long

Returns the smaller of two 64-bit signed integers.

static
Min(sbyte, sbyte) : sbyte

Returns the smaller of two 8-bit signed integers.

static
Min(float, float) : float

Returns the smaller of two single-precision floating-point numbers.

static
Min(ushort, ushort) : ushort

Returns the smaller of two 16-bit unsigned integers.

static
Min(uint, uint) : uint

Returns the smaller of two 32-bit unsigned integers.

static
Min(ulong, ulong) : ulong

Returns the smaller of two 64-bit unsigned integers.

static
Pow(double, double) : double

Returns a specified number raised to the specified power.

static
Round(decimal) : decimal

Rounds a decimal value to the nearest integral value.

static
Round(double) : double

Rounds a double-precision floating-point value to the nearest integral value.

static
Round(decimal, int) : decimal

Rounds a decimal value to a specified number of fractional digits.

static
Round(decimal, MidpointRounding) : decimal

Rounds a decimal value to the nearest integer. A parameter specifies how to round the value if it is midway between two numbers.

static
Round(double, int) : double

Rounds a double-precision floating-point value to a specified number of fractional digits.

static
Round(double, MidpointRounding) : double

Rounds a double-precision floating-point value to the nearest integer. A parameter specifies how to round the value if it is midway between two numbers.

static
Round(decimal, int, MidpointRounding) : decimal

Rounds a decimal value to a specified number of fractional digits. A parameter specifies how to round the value if it is midway between two numbers.

static
Round(double, int, MidpointRounding) : double

Rounds a double-precision floating-point value to a specified number of fractional digits. A parameter specifies how to round the value if it is midway between two numbers.

static
Sign(decimal) : int

Returns a value indicating the sign of a decimal number.

static
Sign(double) : int

Returns a value indicating the sign of a double-precision floating-point number.

static
Sign(short) : int

Returns a value indicating the sign of a 16-bit signed integer.

static
Sign(int) : int

Returns a value indicating the sign of a 32-bit signed integer.

static
Sign(long) : int

Returns a value indicating the sign of a 64-bit signed integer.

static
Sign(sbyte) : int

Returns a value indicating the sign of an 8-bit signed integer.

static
Sign(float) : int

Returns a value indicating the sign of a single-precision floating-point number.

static
Sin(double) : double

Returns the sine of the specified angle.

static
Sinh(double) : double

Returns the hyperbolic sine of the specified angle.

static
Sqrt(double) : double

Returns the square root of a specified number.

static
Tan(double) : double

Returns the tangent of the specified angle.

static
Tanh(double) : double

Returns the hyperbolic tangent of the specified angle.

static
Truncate(decimal) : decimal

Calculates the integral part of a specified decimal number.

static
Truncate(double) : double

Calculates the integral part of a specified double-precision floating-point number.