Bridge

Decimal Members

The Decimal type exposes the following members.

Constructors


  Name Description
Public method Decimal(Double)
Initializes a new instance of Decimal to the value of the specified double-precision floating-point number.
Public method Decimal(Int32)
Initializes a new instance of Decimal to the value of the specified 32-bit signed integer.
Public method Decimal(UInt32)
Initializes a new instance of Decimal to the value of the specified 32-bit unsigned integer.
Public method Decimal(Single)
Initializes a new instance of Decimal to the value of the specified single-precision floating-point number.
Public method Decimal(Int64)
Initializes a new instance of Decimal to the value of the specified 64-bit signed integer.
Public method Decimal(UInt64)
Initializes a new instance of Decimal to the value of the specified 64-bit unsigned integer.
Public method Decimal(Int32, Int32, Int32, Boolean, Byte)
Initializes a new instance of Decimal from parameters specifying the instance's constituent parts.

Methods


  Name Description
Public method Abs
Public method Static member Add
Adds two specified Decimal values.
Public method Ceiling()()()()
Public method Static member Ceiling(Decimal)
Returns the smallest integral value that is greater than or equal to the specified decimal number.
Public method Static member Compare
Compares two specified Decimal values.
Public method ComparedTo
Public method CompareTo(Decimal)
Compares this instance to a specified Decimal object and returns a comparison of their relative values.
Public method CompareTo(Object)
Compares this instance to a specified object and returns a comparison of their relative values.
Public method DecimalPlaces
Public method Static member Divide
Divides two specified Decimal values.
Public method DividedToIntegerBy
Public method Equals(Decimal)
Returns a value indicating whether this instance and a specified Decimal object represent the same value.
Public method Static member Equals(Decimal, Decimal)
Returns a value indicating whether two specified instances of Decimal represent the same value.
Public method Static member Exp
Public method Exponential
Public method Static member Floor(Decimal)
Rounds a specified Decimal number to the closest integer toward negative infinity.
Public method Floor()()()()
Public method Format(String)
Public method Format(String, IFormatProvider)
Public method IsFinite
Public method IsInteger
Public method IsNaN
Public method IsNegative
Public method IsZero
Public method Static member Ln(Decimal)
Public method Ln()()()()
Public method Static member Log(Decimal, Decimal)
Public method Log(Decimal)
Public method Static member Max
Public method Static member Min
Public method Static member Multiply
Multiplies two specified Decimal values.
Public method Static member Negate
Returns the result of multiplying the specified Decimal value by negative one.
Public method Static member Parse(String)
Converts the string representation of a number to its Decimal equivalent.
Public method Static member Parse(String, IFormatProvider)
Public method Static member Pow(Decimal, Decimal)
Public method Pow(Double)
Public method Precision
Public method Static member Random
Returns a new Decimal with a pseudo-random value equal to or greater than 0 and less than 1.
Public method Static member Remainder
Computes the remainder after dividing two Decimal values.
Public method Static member Round(Decimal)
Rounds a decimal value to the nearest integer.
Public method Static member Round(Decimal, Int32)
Rounds a Decimal value to a specified number of decimal places.
Public method Static member Round(Decimal, Int32, MidpointRounding)
Public method Static member Round(Decimal, MidpointRounding)
Public method Round()()()()
Public method Static member SetConfig
Configures the 'global' settings for this particular Decimal constructor.
Public method Static member Sqrt(Decimal)
Public method Sqrt()()()()
Public method Static member Subtract
Subtracts one specified Decimal value from another.
Public method Static member ToByte
Converts the value of the specified Decimal to the equivalent 8-bit unsigned integer.
Public method Static member ToChar
Public method ToDecimalPlaces
Public method Static member ToDouble
Converts the value of the specified Decimal to the equivalent double-precision floating-point number.
Public method ToExponential
Public method ToFixed
Public method ToFormat()()()()
Public method ToFormat(Int32)
Public method ToFormat(Int32, MidpointRounding)
Public method ToFormat(Int32, MidpointRounding, IFormatProvider)
Public method ToFormat(Int32, MidpointRounding, DecimalFormatConfig)
Public method ToFormat(DecimalFormatConfig)
Public method Static member ToInt16
Converts the value of the specified Decimal to the equivalent 16-bit signed integer.
Public method Static member ToInt32
Converts the value of the specified Decimal to the equivalent 32-bit signed integer.
Public method Static member ToInt64
Converts the value of the specified Decimal to the equivalent 64-bit signed integer.
Public method ToPrecision
Public method Static member ToSByte
Converts the value of the specified Decimal to the equivalent 8-bit signed integer.
Public method ToSignificantDigits
Public method Static member ToSingle
Converts the value of the specified Decimal to the equivalent single-precision floating-point number.
Public method ToString(String)
Converts the numeric value of this instance to its equivalent string representation, using the specified format.
Public method ToString(String, IFormatProvider)
Public method ToString(IFormatProvider)
Public method ToString()()()()
Converts the numeric value of this instance to its equivalent string representation.
Public method Static member ToUInt16
Converts the value of the specified Decimal to the equivalent 16-bit unsigned integer.
Public method Static member ToUInt32
Converts the value of the specified Decimal to the equivalent 32-bit unsigned integer.
Public method Static member ToUInt64
Converts the value of the specified Decimal to the equivalent 64-bit unsigned integer.
Public method Static member Truncate
Returns the integral digits of the specified Decimal; any fractional digits are discarded.
Public method Static member TryParse(String, Decimal%)
Converts the string representation of a number to its Decimal equivalent. A return value indicates whether the conversion succeeded or failed.
Public method Static member TryParse(String, IFormatProvider, Decimal%)

Operators


  Name Description
Public operator Static member Addition
Adds two specified Decimal values.
Public operator Static member Decrement
Decrements the Decimal operand by one.
Public operator Static member Division
Divides two specified Decimal values.
Public operator Static member Equality
Returns a value that indicates whether two Decimal values are equal.
Public operator Static member Explicit Narrowing Explicit Explicit Explicit (Single to Decimal)
Defines an explicit conversion of a single-precision floating-point number to a Decimal.
Public operator Static member Explicit Narrowing Explicit Explicit Explicit (Double to Decimal)
Defines an explicit conversion of a double-precision floating-point number to a Decimal.
Public operator Static member Explicit Narrowing Explicit Explicit Explicit (Decimal to Byte)
Defines an explicit conversion of a Decimal to an 8-bit unsigned integer.
Public operator Static member Explicit Narrowing Explicit Explicit Explicit (Decimal to SByte)
Defines an explicit conversion of a Decimal to an 8-bit signed integer.
Public operator Static member Explicit Narrowing Explicit Explicit Explicit (Decimal to Char)
Defines an explicit conversion of a Decimal to a Unicode character.
Public operator Static member Explicit Narrowing Explicit Explicit Explicit (Decimal to Int16)
Defines an explicit conversion of a Decimal to a 16-bit signed integer.
Public operator Static member Explicit Narrowing Explicit Explicit Explicit (Decimal to UInt16)
Defines an explicit conversion of a Decimal to a 16-bit unsigned integer.
Public operator Static member Explicit Narrowing Explicit Explicit Explicit (Decimal to Int32)
Defines an explicit conversion of a Decimal to a 32-bit signed integer.
Public operator Static member Explicit Narrowing Explicit Explicit Explicit (Decimal to UInt32)
Defines an explicit conversion of a Decimal to a 32-bit unsigned integer.
Public operator Static member Explicit Narrowing Explicit Explicit Explicit (Decimal to Int64)
Defines an explicit conversion of a Decimal to a 64-bit signed integer.
Public operator Static member Explicit Narrowing Explicit Explicit Explicit (Decimal to UInt64)
Defines an explicit conversion of a Decimal to a 64-bit unsigned integer.
Public operator Static member Explicit Narrowing Explicit Explicit Explicit (Decimal to Single)
Defines an explicit conversion of a Decimal to a single-precision floating-point number.
Public operator Static member Explicit Narrowing Explicit Explicit Explicit (Decimal to Double)
Defines an explicit conversion of a Decimal to a double-precision floating-point number.
Public operator Static member GreaterThan
Returns a value indicating whether a specified Decimal is greater than another specified Decimal.
Public operator Static member GreaterThanOrEqual
Returns a value indicating whether a specified Decimal is greater than or equal to another specified Decimal.
Public operator Static member Implicit Widening Implicit Implicit Implicit (Byte to Decimal)
Defines an explicit conversion of an 8-bit unsigned integer to a Decimal.
Public operator Static member Implicit Widening Implicit Implicit Implicit (SByte to Decimal)
Defines an explicit conversion of an 8-bit signed integer to a Decimal.
Public operator Static member Implicit Widening Implicit Implicit Implicit (Int16 to Decimal)
Defines an explicit conversion of a 16-bit signed integer to a Decimal.
Public operator Static member Implicit Widening Implicit Implicit Implicit (UInt16 to Decimal)
Defines an explicit conversion of a 16-bit unsigned integer to a Decimal.
Public operator Static member Implicit Widening Implicit Implicit Implicit (Char to Decimal)
Defines an explicit conversion of a Unicode character to a Decimal.
Public operator Static member Implicit Widening Implicit Implicit Implicit (Int32 to Decimal)
Defines an explicit conversion of a 32-bit signed integer to a Decimal.
Public operator Static member Implicit Widening Implicit Implicit Implicit (UInt32 to Decimal)
Defines an explicit conversion of a 32-bit unsigned integer to a Decimal.
Public operator Static member Implicit Widening Implicit Implicit Implicit (Int64 to Decimal)
Defines an explicit conversion of a 64-bit signed integer to a Decimal.
Public operator Static member Implicit Widening Implicit Implicit Implicit (UInt64 to Decimal)
Defines an explicit conversion of a 64-bit unsigned integer to a Decimal.
Public operator Static member Increment
Increments the Decimal operand by 1.
Public operator Static member Inequality
Returns a value that indicates whether two Decimal objects have different values.
Public operator Static member LessThan
Returns a value indicating whether a specified Decimal is less than another specified Decimal.
Public operator Static member LessThanOrEqual
Returns a value indicating whether a specified Decimal is less than or equal to another specified Decimal.
Public operator Static member Modulus
Returns the remainder resulting from dividing two specified Decimal values.
Public operator Static member Multiply
Multiplies two specified Decimal values.
Public operator Static member Subtraction
Subtracts two specified Decimal values.
Public operator Static member UnaryNegation
Negates the value of the specified Decimal operand.
Public operator Static member UnaryPlus
Returns the value of the Decimal operand (the sign of the operand is unchanged).

Fields


  Name Description
Public field Static member MaxValue
Represents the largest possible value of Decimal. This field is constant and read-only.
Public field Static member MinusOne
Represents the number negative one (-1).
Public field Static member MinValue
Represents the smallest possible value of Decimal. This field is constant and read-only.
Public field Static member One
Represents the number one (1).
Public field Static member Zero
Represents the number zero (0).