Class DecimalExtensions
Extensions for System.Decimal
Inheritance
System.Object
DecimalExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Dangl
Assembly: Dangl.Common.dll
Syntax
public static class DecimalExtensions
Methods
| Improve this Doc View SourceWithMaxAbsoluteValue(Decimal, Decimal)
This will keep the sign (positive or negative) and return the original value if it is less than or equal the maxAbsoluteValue or the maxAbsoluteValue.
Declaration
public static decimal WithMaxAbsoluteValue(this decimal value, decimal maxValueAbsolute)
Parameters
Type | Name | Description |
---|---|---|
System.Decimal | value | |
System.Decimal | maxValueAbsolute | Must be bigger than zero. |
Returns
Type | Description |
---|---|
System.Decimal |