Mono Class Library: Overview

System.Decimal: Members

The members of System.Decimal are listed below.

See Also: Inherited members from System.ValueType

Public Constructors

Constructs and initializes a new decimal value.
Constructs and initializes a new decimal value.
Constructs and initializes a new decimal value.
Constructs and initializes a new decimal value.
Constructs and initializes a new decimal value.
Constructs and initializes a new decimal value.
Constructs and initializes a new decimal value.
Documentation for this section has not yet been entered.

Public Fields

static readonly
MaxValuedecimal (79228162514264337593543950335). Contains the maximum positive value for the decimal type.
static readonly
MinusOnedecimal (-1). Contains negative one (-1).
static readonly
MinValuedecimal (-79228162514264337593543950335). Contains the minimum (most negative) value for the decimal type.
static readonly
Onedecimal (1). Contains one (1).
static readonly
Zerodecimal (0). Contains zero (0).

Public Methods

static
Add(decimal, decimal) : decimal
Adds two decimal values together.
static
Ceiling(decimal) : decimal
Documentation for this section has not yet been entered.
static
Compare(decimal, decimal) : int
Compares the values of two decimal values and returns sort order information.
CompareTo(decimal) : int
Returns the sort order of the current instance compared to the specified decimal.
CompareTo(object) : int
Returns the sort order of the current instance compared to the specified object .
static
Divide(decimal, decimal) : decimal
Divides the value of one decimal by another.
Equals(decimal) : bool
Determines whether the current instance and the specified decimal have the same value. Trailing zero digits in the fractional part are ignored.
override
Equals(object) : bool
Determines whether the current instance and the specified object have the same type and value. Trailing zero digits in the fractional part are ignored.
static
Equals(decimal, decimal) : bool
Determines whether two decimal values have the same value. Trailing zero digits in the fractional part are ignored.
static
Floor(decimal) : decimal
Rounds a decimal value to the closest integer towards negative infinity.
static
FromOACurrency(long) : decimal
Documentation for this section has not yet been entered.
static
GetBits(decimal) : int[]
Returns a binary representation of the specified decimal value.
override
GetHashCode() : int
Generates a hash code for the current instance. Trailing zero digits in the fractional part are ignored.
GetTypeCode() : TypeCode
Documentation for this section has not yet been entered.
static
Multiply(decimal, decimal) : decimal
Returns the result of multiplying two decimal values.
static
Negate(decimal) : decimal
Returns the result of multiplying a decimal value by negative one.
static
Parse(string) : decimal
Returns the specified string converted to a decimal value.
static
Parse(string, System.Globalization.NumberStyles) : decimal
Returns the specified string converted to a decimal value.
static
Parse(string, IFormatProvider) : decimal
Returns the specified string converted to a decimal value.
static
Parse(string, System.Globalization.NumberStyles, IFormatProvider) : decimal
Returns the specified string converted to a decimal value.
static
Remainder(decimal, decimal) : decimal
Computes the remainder after dividing two decimal values.
static
Round(decimal) : decimal
Documentation for this section has not yet been entered.
static
Round(decimal, int) : decimal
Rounds a decimal value to a specified number of decimal places.
static
Round(decimal, MidpointRounding) : decimal
Documentation for this section has not yet been entered.
static
Round(decimal, int, MidpointRounding) : decimal
Documentation for this section has not yet been entered.
static
Subtract(decimal, decimal) : decimal
Subtracts one decimal value from another.
static
ToByte(decimal) : byte
Documentation for this section has not yet been entered.
static
ToDouble(decimal) : double
Documentation for this section has not yet been entered.
static
ToInt16(decimal) : short
Documentation for this section has not yet been entered.
static
ToInt32(decimal) : int
Documentation for this section has not yet been entered.
static
ToInt64(decimal) : long
Documentation for this section has not yet been entered.
static
ToOACurrency(decimal) : long
Documentation for this section has not yet been entered.
static
ToSByte(decimal) : sbyte
Documentation for this section has not yet been entered.
static
ToSingle(decimal) : float
Documentation for this section has not yet been entered.
override
ToString() : string
Returns a canonical string representation of the value of the current instance.
ToString(IFormatProvider) : string
Returns a string representation of the value of the current instance.
ToString(string) : string
Returns a string representation of the value of the current instance.
ToString(string, IFormatProvider) : string
Returns a string representation of the value of the current instance.
static
ToUInt16(decimal) : ushort
Documentation for this section has not yet been entered.
static
ToUInt32(decimal) : uint
Documentation for this section has not yet been entered.
static
ToUInt64(decimal) : ulong
Documentation for this section has not yet been entered.
static
Truncate(decimal) : decimal
Rounds a decimal value towards zero, to the closest integer value.
static
TryParse(string, out decimal) : bool
Documentation for this section has not yet been entered.
static
TryParse(string, System.Globalization.NumberStyles, IFormatProvider, out decimal) : bool
Documentation for this section has not yet been entered.

Public Operators

static
Addition(decimal, decimal) Adds two decimal values together.
static
DecrementReturns the specified value decremented by one.
static
Division(decimal, decimal) Divides one decimal value by another decimal .
static
Equality(decimal, decimal)Determines whether two decimals have the same value.
static
GreaterThan(decimal, decimal) Determines whether one decimal value is greater than another decimal value.
static
GreaterThanOrEqual(decimal, decimal) Determines whether one decimal value is greater than or equal to another decimal value.
static
IncrementReturns the specified value incremented by one.
static
Inequality(decimal, decimal)Determines whether two decimals do not have the same value.
static
LessThan(decimal, decimal) Determines whether one decimal value is less than another decimal value.
static
LessThanOrEqual(decimal, decimal) Determines whether one decimal value is less than or equal to another decimal value.
static
Modulus(decimal, decimal) Divides one decimal value by another decimal and returns the remainder.
static
Multiply(decimal, decimal) Returns the result of multiplying two decimal values.
static
Subtraction(decimal, decimal) Subtracts one decimal value from another.
static
UnaryNegationReturns the specified value multiplied by negative one (-1).
static
UnaryPlus Returns the specified value.
static
Conversion to System.Byte(Explicit)Perform an explicit conversion of a decimal value to double .
static
Conversion to System.Char(Explicit)Perform an explicit conversion of a decimal value to char .
static
Conversion to System.Double(Explicit)Perform an explicit conversion of a decimal value to double .
static
Conversion to System.Int16(Explicit)Perform an explicit conversion of a decimal value to short .
static
Conversion to System.Int32(Explicit)Perform an explicit conversion of a decimal value to int .
static
Conversion to System.Int64(Explicit)Perform an explicit conversion of a decimal value to long .
static
Conversion to System.SByte(Explicit)Perform an explicit conversion of a decimal value to sbyte .
static
Conversion to System.Single(Explicit)Perform an explicit conversion of a decimal value to short .
static
Conversion to System.UInt16(Explicit)Perform an explicit conversion of a decimal value to ushort .
static
Conversion to System.UInt32(Explicit)Perform an explicit conversion of a decimal value to uint .
static
Conversion to System.UInt64(Explicit)Perform an explicit conversion of a decimal value to ulong .
static
Conversion to System.Decimal(Explicit)Perform an explicit conversion of a double value to decimal.
static
Conversion to System.Decimal(Explicit)Perform an explicit conversion of a float value to decimal.
static
Conversion to System.Decimal(Implicit)Perform an implicit conversion of a byte value to decimal.
static
Conversion to System.Decimal(Implicit)Perform an implicit conversion of a char value to decimal.
static
Conversion to System.Decimal(Implicit)Perform an implicit conversion of a short value to decimal.
static
Conversion to System.Decimal(Implicit)Perform an implicit conversion of a int value to decimal.
static
Conversion to System.Decimal(Implicit)Perform an implicit conversion of a long value to decimal.
static
Conversion to System.Decimal(Implicit)Perform an implicit conversion of a sbyte value to decimal.
static
Conversion to System.Decimal(Implicit)Perform an implicit conversion of a ushort value to decimal.
static
Conversion to System.Decimal(Implicit)Perform an implicit conversion of a uint value to decimal.
static
Conversion to System.Decimal(Implicit)Perform an implicit conversion of a ulong value to decimal.

Explicitly Implemented Interface Members

IConvertible.ToBooleanDocumentation for this section has not yet been entered.
IConvertible.ToByteDocumentation for this section has not yet been entered.
IConvertible.ToCharDocumentation for this section has not yet been entered.
IConvertible.ToDateTimeDocumentation for this section has not yet been entered.
IConvertible.ToDecimalDocumentation for this section has not yet been entered.
IConvertible.ToDoubleDocumentation for this section has not yet been entered.
IConvertible.ToInt16Documentation for this section has not yet been entered.
IConvertible.ToInt32Documentation for this section has not yet been entered.
IConvertible.ToInt64Documentation for this section has not yet been entered.
IConvertible.ToSByteDocumentation for this section has not yet been entered.
IConvertible.ToSingleDocumentation for this section has not yet been entered.
IConvertible.ToTypeDocumentation for this section has not yet been entered.
IConvertible.ToUInt16Documentation for this section has not yet been entered.
IConvertible.ToUInt32Documentation for this section has not yet been entered.
IConvertible.ToUInt64Documentation for this section has not yet been entered.