Skip to main content


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

Math methods

Updated on October 19, 2022

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

MethodDescriptionResult 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]
AcosReturns the angle whose cosine is the specified number. Double
AsinReturns the angle whose sine is the specified number. Double
AtanReturns the angle whose tangent is the specified number. Double
Atan2Returns the angle whose tangent is the quotient of two specified numbers. Double, double
BigMulProduces 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
CosReturns the cosine of the specified angle. Double
CoshReturns 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
ExpReturns 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
IEEERemainderReturns 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
Log10Returns the base 10 logarithm of a specified number. Double
MaxReturns 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
MinReturns 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
PowReturns a specified number raised to the specified power. Double, double
RndRounds 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
SignReturns 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
SinReturns the sine of the specified angle. Double
SinhReturns the hyperbolic sine of the specified angle. Double
SqrtReturns the square root of a specified number. Double
TanReturns the tangent of the specified angle. Double
TanhReturns 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?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us