DecimalExtensions Class

Provides extension methods for the decimal type.


Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.0.0
public static class DecimalExtensions
Object    DecimalExtensions


Exp Returns e raised to the specified power.
IsNegativeZero Gets whether the specified value is negative zero.
Log(Decimal) Returns the natural (base e) logarithm of a Decimal value.
Log(Decimal, Decimal) Returns the logarithm of a specified value in a specified base.
Log10 Returns the base 10 logarithm of a Decimal value.
Normalize Removes the trailing zeros after the decimal sign of the specified Decimal value.
Pow(Decimal, Decimal) Returns the specified value raised to the specified power.
Pow(Decimal, Int32) Returns the specified value raised to the specified power.
ToRoundtripString Returns a culture-invariant String representation of the given Decimal value, from which the original value can be parsed without losing any information.


E Represents the natural logarithmic base, specified by the constant, e.
Epsilon Represents the smallest positive Decimal value that is greater than zero.
NegativeZero Represents one possible negative zero value of the Decimal type.
PI Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π.

See Also