DecimalMath Class

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public static class DecimalMath
Inheritance
Object  →  DecimalMath

Methods

Abs Returns the absolute value of a System.Decimal number.
Acos Returns the angle whose cosine is the specified number.
Acosh Returns the inverse hyperbolic cosine of a decimal number.
Asin Returns the angle whose sine is the specified number.
Asinh Returns the inverse hyperbolic sine of a decimal number.
Atan Returns the angle whose tangent is the specified number.
Atan2 Returns the angle between the X-axis and the ray from the origin to the specified point.
Atanh Returns the inverse hyperbolic tangent of a decimal number.
Cbrt Returns the cube root of a specified number.
Ceiling Returns the smallest integral value that is greater than or equal to the specified decimal 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.
Exp10 Returns 10 raised to the specified power.
Exp2 Returns 2 raised to the specified power.
ExpM1 Returns e raised to the specified power, minus 1.
ExpMinus1 Returns e raised to the specified power, minus 1.
Floor Returns the largest integer less than or equal to the specified decimal number.
Hypot Gets the length of the hypotenuse of a right-angled triangle with sides of specified length.
Log(Decimal) Returns the natural (base e) logarithm of a specified number.
Log(Decimal, Decimal) Returns the logarithm of a specified number in a specified base.
Log10 Returns the base 10 logarithm of a specified number.
Log1PlusX Returns the logarithm of 1 plus the argument.
Log2 Returns the natural (base e) logarithm of a specified number.
Max Returns the larger of two decimal numbers.
Min Returns the smaller of two decimal numbers.
Pow(Decimal, Decimal) Returns a specified number raised to the specified power.
Pow(Decimal, Int32) Returns a number raised to an integer power.
Round(Decimal) Rounds a decimal value to the nearest integral value.
Round(Decimal, Int32) Rounds a decimal value to a specified number of fractional digits.
Round(Decimal, MidpointRounding) Rounds a decimal value to the nearest integer. A parameter specifies how to round the value if it is midway between two other numbers.
Round(Decimal, Int32, MidpointRounding) 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 other numbers.
ScaleByPowerOfTwo Multiplies a Decimal value by a power of two.
Sign Returns a value indicating the sign of a decimal number.
Sin Returns the sine of the specified angle.
SinCos Computes the sine and cosine of a decimal value.
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 number.

Fields

E Represents the natural logarithmic base, specified by the constant, e.
Epsilon Represents the smallest positive decimal value.
Log2Base10 Represents the base 10 logarithm of 2.
Pi Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π.
SqrtPi Represents the square root of π.

See Also