// Copyright (c) Umbraco.
// See LICENSE for more details.
namespace Umbraco.Extensions;
///
/// Provides extension methods for System.Decimal.
///
///
/// See System.Decimal on MSDN and also
/// http://stackoverflow.com/questions/4298719/parse-decimal-and-filter-extra-0-on-the-right/4298787#4298787.
///
public static class DecimalExtensions
{
///
/// Gets the normalized value.
///
/// The value to normalize.
/// The normalized value.
///
/// Normalizing changes the scaling factor and removes trailing zeros,
/// so 1.2500m comes out as 1.25m.
///
public static decimal Normalize(this decimal value) => value / 1.000000000000000000000000000000000m;
}