Search Results for

    Show / Hide Table of Contents
    View Source

    Class DecimalExtensions

    Provides extension methods for System.Decimal.

    Inheritance
    System.Object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Core.dll
    Syntax
    public static class DecimalExtensions
    Remarks

    See System.Decimal on MSDN and also http://stackoverflow.com/questions/4298719/parse-decimal-and-filter-extra-0-on-the-right/4298787#4298787.

    Methods

    View Source

    Normalize(Decimal)

    Gets the normalized value.

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

    The value to normalize.

    Returns
    Type Description
    System.Decimal

    The normalized value.

    Remarks

    Normalizing changes the scaling factor and removes trailing zeros, so 1.2500m comes out as 1.25m.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • Normalize(Decimal)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX