Class MathExt
- Namespace
- Sportradar.LiveData.Sdk.Common.Utils
- Assembly
- Sportradar.LiveData.Sdk.dll
public static class MathExt
- Inheritance
-
MathExt
- Inherited Members
Methods
Lengthen(decimal)
The opposite of Math.Truncate.
public static decimal Lengthen(decimal num)
Parameters
numdecimalNumber
Returns
- decimal
Truncate will round towards zero, this method rounds towards - or + infinity. This is like Math.Ceil for positive numbers, and like Math.Floor for negative numbers.
Lengthen(double)
The opposite of Math.Truncate.
public static double Lengthen(double num)
Parameters
numdoubleNumber
Returns
- double
Truncate will round towards zero, this method rounds towards - or + infinity. This is like Math.Ceil for positive numbers, and like Math.Floor for negative numbers.