Click or drag to resize
Decimal Structure
Represents a decimal number.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
[SerializableAttribute]
public struct Decimal : IFormattable, IComparable, 
	IConvertible, IDeserializationCallback, IComparable<decimal>, IEquatable<decimal>

The Decimal type exposes the following members.

Methods
  NameDescription
Public methodCompareTo(Decimal)
Compares this instance to a specified Decimal object.
Public methodCompareTo(Object)
Compares this instance to a specified Object.
Public methodEquals(Decimal)
Returns a value indicating whether this instance and a specified Decimal object represent the same value.
Public methodEquals(Object)
Returns a value indicating whether this instance and a specified Object represent the same type and value.
(Overrides ValueTypeEquals(Object).)
Public methodStatic memberEquals(Decimal, Decimal)
Returns a value indicating whether two specified instances of Decimal represent the same value.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Converts the numeric value of this instance to its equivalent string representation.
(Overrides ValueTypeToString.)
Public methodToString(IFormatProvider)
Converts the numeric value of this instance to its equivalent string representation using the specified culture-specific format information.
Public methodToString(String)
Converts the numeric value of this instance to its equivalent string representation, using the specified format.
Public methodToString(String, IFormatProvider)
Converts the numeric value of this instance to its equivalent string representation using the specified format and culture-specific format information.
Top
Fields
  NameDescription
Public fieldStatic memberMaxValue
Represents the largest possible value of Decimal. This field is constant and read-only.
Public fieldStatic memberMinusOne
Represents the number negative one (-1).
Public fieldStatic memberMinValue
Represents the smallest possible value of Decimal. This field is constant and read-only.
Public fieldStatic memberOne
Represents the number one (1).
Public fieldStatic memberZero
Represents the number zero (0).
Top
See Also