JK
Search Results for

    Show / Hide Table of Contents

    Class DecimalExtensions

    Extension methods for the Decimal object.

    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: JK.Common.Extensions
    Assembly: JK.Common.dll
    Syntax
    public static class DecimalExtensions

    Methods

    | Improve this Doc View Source

    GetDecimalPart(Decimal)

    Gets the decimal part (right side of decimal) from the given decimal.

    Declaration
    public static decimal GetDecimalPart(this decimal value)
    Parameters
    Type Name Description
    System.Decimal value

    Current Decimal object from extension method.

    Returns
    Type Description
    System.Decimal

    Right side of decimal as integer

    | Improve this Doc View Source

    GetWholePart(Decimal)

    Gets the whole part (left side of decimal) from the given decimal.

    Declaration
    public static decimal GetWholePart(this decimal value)
    Parameters
    Type Name Description
    System.Decimal value

    Current Decimal object from extension method.

    Returns
    Type Description
    System.Decimal

    Left side of decimal as integer

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © Jeremy Knight. Generated with DocFX