DecimalMath Methods

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.
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.
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.
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.
Sign Returns a value indicating the sign of a decimal 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 decimal number.

See Also