Search Results for

    Show / Hide Table of Contents

    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 Source

    WithMaxAbsoluteValue(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
    • Improve this Doc
    • View Source
    In This Article
    Back to top © Dangl IT GmbH