DecimalExtensionsNormalize Method

Removes the trailing zeros after the decimal sign of the specified Decimal value.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 10.0.0
C#
public static decimal Normalize(
	this decimal value
)

Parameters

value  Decimal
The value to normalize.

Return Value

Decimal
The normalized value of the specified Decimal value containing no trailing zeros after the decimal sign.

Usage Note

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).

See Also