Decimal Structure |
Namespace: System
[SerializableAttribute] public struct Decimal : IFormattable, IComparable, IConvertible, IDeserializationCallback, IComparable<decimal>, IEquatable<decimal>
The Decimal type exposes the following members.
Name | Description | |
---|---|---|
CompareTo(Decimal) | Compares this instance to a specified Decimal object. | |
CompareTo(Object) | Compares this instance to a specified Object. | |
Equals(Decimal) | Returns a value indicating whether this instance and a specified Decimal object represent the same value. | |
Equals(Object) | Returns a value indicating whether this instance and a specified Object represent the same type and value. (Overrides ValueTypeEquals(Object).) | |
Equals(Decimal, Decimal) | Returns a value indicating whether two specified instances of Decimal represent the same value. | |
GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Converts the numeric value of this instance to its equivalent string representation. (Overrides ValueTypeToString.) | |
ToString(IFormatProvider) | Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information. | |
ToString(String) | Converts the numeric value of this instance to its equivalent string representation, using the specified format. | |
ToString(String, IFormatProvider) | Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information. |
Name | Description | |
---|---|---|
MaxValue | Represents the largest possible value of Decimal. This field is constant and read-only. | |
MinusOne | Represents the number negative one (-1). | |
MinValue | Represents the smallest possible value of Decimal. This field is constant and read-only. | |
One | Represents the number one (1). | |
Zero | Represents the number zero (0). |