DecimalExtensionsNormalize Method
Removes the trailing zeros after the decimal sign of the specified
Decimal value.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
public static decimal Normalize(
this decimal value
)
<ExtensionAttribute>
Public Shared Function Normalize (
value As Decimal
) As Decimal
public:
[ExtensionAttribute]
static Decimal Normalize(
Decimal value
)
[<ExtensionAttribute>]
static member Normalize :
value : decimal -> decimal
- value Decimal
- The value to normalize.
DecimalThe normalized value of the specified
Decimal value containing no trailing zeros after the decimal sign.In Visual Basic and C#, you can call this method as an instance method on any object of type
Decimal. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).