This documentation site is for previous versions. Visit our new documentation site for current releases.

# Math methods

Updated on November 10, 2021

Use math methods to retrieve and calculate values for mathematical properties, including constants and static methods for trigonometric, logarithmic, and other common mathematical functions.

### Methods

 Method Description Result type Abs(Decimal) Returns the absolute value of a Decimal number. Decimal Abs(Double) Returns the absolute value of a double-precision floating-point number. Double Abs(Int) Returns the absolute value of a signed integer for 16-, 32-, and 64-bit integers. Int[X] Acos Returns the angle whose cosine is the specified number. Double Asin Returns the angle whose sine is the specified number. Double Atan Returns the angle whose tangent is the specified number. Double Atan2 Returns the angle whose tangent is the quotient of two specified numbers. Double, double BigMul Produces the full product of two 32-bit numbers. Int32, Int32 Ceiling (decimal) Returns the smallest integral value that is greater than or equal to the specified decimal number. Decimal Ceiling (double) Returns the smallest integral value that is greater than or equal to the specified double-precision floating-point number. Double Cos Returns the cosine of the specified angle. Double Cosh Returns the hyperbolic cosine of the specified angle. Double DivRem (Int32) Calculates the quotient of two 32-bit signed integers and also returns the remainder in an output parameter. Int32, Int32, Int32 DivRem (Int64) Calculates the quotient of two 64-bit signed integers and also returns the remainder in an output parameter. Int64, Int64, Int64 Exp Returns a constant raised to the specified power. Double Floor (decimal) Returns the largest integral value less than or equal to the specified decimal number. Decimal Floor (double) Returns the largest integral value less than or equal to the specified double-precision floating-point number. Double IEEERemainder Returns the remainder resulting from the division of a specified number by another specified number. Double, double Log (double) Returns the natural logarithm of a specified number. Double Log (double, double) Returns the logarithm of a specified number in a specified base. Double, double Log10 Returns the base 10 logarithm of a specified number. Double Max Returns the larger of two integers or floating-point numbers. Can be either Byte, Decimal, Double, Int16, Int32, Int64, SByte, Single, UInt16, UInt32, or UInt64.) See Description Min Returns the smaller of two integers or floating-point numbers. Can be either Byte, Decimal, Double, Int16, Int32, Int64, SByte, Single, UInt16, UInt32, or UInt64.) See Description Pow Returns a specified number raised to the specified power. Double, double Rnd Rounds a decimal value to the nearest integral value, and rounds midpoint values to the nearest even number. Decimal Round (Decimal) Rounds a decimal value to the nearest integral value, and rounds midpoint values to the nearest even number. Decimal Round (Decimal, Int32) Rounds a decimal value to a specified number of fractional digits, and rounds midpoint values to the nearest even number. Decimal, Int32 Round (Decimal, Int32, MidpointRounding) Rounds a decimal value to a specified number of fractional digits using the specified rounding convention. Decimal, Int32, MidpointRounding Round (Decimal, MidpointRounding) Rounds a decimal value an integer using the specified rounding convention. Decimal, MidpointRounding Round (Double) Rounds a double-precision floating-point value to the nearest integral value, and rounds midpoint values to the nearest even number. Double Round (Double, Int32) Rounds a double-precision floating-point value to a specified number of fractional digits, and rounds midpoint values to the nearest even number. Double, Int32 Round (Double, Int32, MidpointRounding) Rounds a double-precision floating-point value to a specified number of fractional digits using the specified rounding convention. Double, Int32, MidpointRounding Round (Double, MidpointRounding) Rounds a double-precision floating-point value to an integer using the specified rounding convention. Double, MidpointRounding Sign Returns an integer that indicates the sign of a decimal number. Can be either a Decimal, Double, Int16, Int32, Int64, SByte, or Single value. See description Sin Returns the sine of the specified angle. Double Sinh Returns the hyperbolic sine of the specified angle. Double Sqrt Returns the square root of a specified number. Double Tan Returns the tangent of the specified angle. Double Tanh Returns the hyperbolic tangent of the specified angle. Double Truncate (decimal) Calculates the integral part of a specified decimal number. Decimal Truncate (double) Calculates the integral part of a specified double-precision floating-point number. Double

## Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?