Click or drag to resize

Amount Methods

The Amount type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAdd
Returns the sum of the specified amounts. The amounts must have the same currency.
Public methodStatic memberAreCompatible
Returns true if the two amounts are compatible (e.g. have the same currency).
Public methodStatic memberCompare
Compares the amounts. The amounts must have the same currency.
Public methodCompareTo(Object)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Public methodCompareTo(Amount)
Compares the current object with another object of the same type.
Public methodStatic memberDivide(Amount, Amount)
Divides the dividend by the divisor.
Public methodStatic memberDivide(Amount, Decimal)
Divides the specified amount.
Public methodEquals(Object)
Determines whether the specified Object, is equal to this instance.
(Overrides ObjectEquals(Object).)
Public methodEquals(Amount)
Indicates whether the current object is equal to another object of the same type.
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides ObjectGetHashCode.)
Public methodStatic memberMultiply
Multiplies the amount with the specified multiplier.
Public methodRound
Returns new Amount, which is rounded, according to the rules of the currency.
Public methodStatic memberSubtract
Subtracts the second amount from the first. The amounts must have the same currency.
Public methodToString
Returns a String that represents this instance.
(Overrides ObjectToString.)
Top
See Also