KGy SOFT

DecimalExtensions Class

KGy SOFT Core Libraries Help
Contains extension methods for the decimal type.
Inheritance Hierarchy

SystemObject
  KGySoft.CoreLibrariesDecimalExtensions

Namespace:  KGySoft.CoreLibraries
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.0.0-rc.1
Syntax

public static class DecimalExtensions

The DecimalExtensions type exposes the following members.

Methods

  NameDescription
Public methodStatic memberExp
Returns e raised to the specified power.
Public methodStatic memberIsNegativeZero
Gets whether the specified value is negative zero.
Public methodStatic memberLog(Decimal)
Returns the natural (base e) logarithm of a Decimal value.
Public methodStatic memberLog(Decimal, Decimal)
Returns the logarithm of a specified value in a specified base.
Public methodStatic memberLog10
Returns the base 10 logarithm of a Decimal value.
Public methodStatic memberNormalize
Removes the trailing zeros after the decimal sign of the specified Decimal value.
Public methodStatic memberPow(Decimal, Decimal)
Returns the specified value raised to the specified power.
Public methodStatic memberPow(Decimal, Int32)
Returns the specified value raised to the specified power.
Public methodStatic memberToRoundtripString
Returns a culture-invariant String representation of the given Decimal value, from which the original value can be parsed without losing any information.
Top
Fields

  NameDescription
Public fieldStatic memberE
Represents the natural logarithmic base, specified by the constant, e.
Public fieldStatic memberEpsilon
Represents the smallest positive Decimal value that is greater than zero.
Public fieldStatic memberNegativeZero
Represents one possible negative zero value of the Decimal type.
Public fieldStatic memberPI
Represents the ratio of the circumference of a circle to its diameter, specified by the constant, π.
Top
See Also

Reference