Decimal128 Structure (original) (raw)
Represents a Decimal128 value.
Namespace: MongoDB.Bson
Assembly: MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed
Syntax
[SerializableAttribute] public struct Decimal128 : IConvertible, IComparable, IEquatable
Public Structure Decimal128 Implements IConvertible, IComparable(Of Decimal128), IEquatable(Of Decimal128)[]
[]
type Decimal128 =
struct
interface IConvertible
interface IComparable
interface IEquatable
end
The Decimal128 type exposes the following members.
Constructors
Properties
| | Name | Description | |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| | MaxValue | Gets the maximum value. |
|
| MinValue | Gets the minimum value. |
|
| NegativeInfinity | Represents negative infinity. |
|
| One | Represents one. |
|
| PositiveInfinity | Represents positive infinity. |
|
| QNaN | Represents a value that is not a number. |
|
| SNaN | Represents a value that is not a number and raises errors when used in calculations. |
|
| Zero | Represents zero. |
Methods
| | Name | Description | |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| | Compare | Compares two specified Decimal128 values and returns an integer that indicates whether the first value is greater than, less than, or equal to the second value. |
|
| CompareTo | 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. |
|
| Equals(Object) | Indicates whether this instance and a specified object are equal. (Overrides ValueTypeEquals(Object).) |
|
| Equals(Decimal128) | Indicates whether the current object is equal to another object of the same type. |
|
| Equals(Decimal128, Decimal128) | Determines whether the specified Decimal128 instances are considered equal. |
|
| FromComponents | Creates a new Decimal128 value from its components. |
|
| FromIEEEBits | Creates a new Decimal128 value from the IEEE encoding bits. |
|
| GetExponent | Gets the exponent of a Decimal128 value. |
|
| GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode.) |
|
| GetIEEEHighBits | Gets the high order 64 bits of the binary representation of this instance. |
|
| GetIEEELowBits | Gets the low order 64 bits of the binary representation of this instance. |
|
| GetSignificandHighBits | Gets the high bits of the significand of a Decimal128 value. |
|
| GetSignificandLowBits | Gets the high bits of the significand of a Decimal128 value. |
|
| GetType | Gets the Type of the current instance. (Inherited from Object.) |
|
| IsInfinity | Returns a value indicating whether the specified number evaluates to negative or positive infinity. |
|
| IsNaN | Returns a value indicating whether the specified number is not a number. |
|
| IsNegative | Returns a value indicating whether the specified number is negative. |
|
| IsNegativeInfinity | Returns a value indicating whether the specified number evaluates to negative infinity. |
|
| IsPositiveInfinity | Returns a value indicating whether the specified number evaluates to positive infinity. |
|
| IsQNaN | Returns a value indicating whether the specified number is a quiet not a number. |
|
| IsSNaN | Returns a value indicating whether the specified number is a signaled not a number. |
|
| IsZero | Returns a value indicating whether the specified number is zero. |
|
| Negate | Negates the specified x. |
|
| Parse | Converts the string representation of a number to its Decimal128 equivalent. |
|
| ToByte | Converts the value of the specified Decimal128 to the equivalent 8-bit unsigned integer. |
|
| ToDecimal | Converts the value of the specified Decimal128 to the equivalent Decimal. |
|
| ToDouble | Converts the value of the specified Decimal128 to the equivalent Double. |
|
| ToInt16 | Converts the value of the specified Decimal128 to the equivalent 16-bit signed integer. |
|
| ToInt32 | Converts the value of the specified Decimal128 to the equivalent 32-bit signed integer. |
|
| ToInt64 | Converts the value of the specified Decimal128 to the equivalent 64-bit signed integer. |
|
| ToSByte | Converts the value of the specified Decimal128 to the equivalent 8-bit signed integer. |
|
| ToSingle | Converts the value of the specified Decimal128 to the equivalent Single. |
|
| ToString | Returns the fully qualified type name of this instance. (Overrides ValueTypeToString.) |
|
| ToUInt16 | Converts the value of the specified Decimal128 to the equivalent 16-bit unsigned integer. |
|
| ToUInt32 | Converts the value of the specified Decimal128 to the equivalent 32-bit unsigned integer. |
|
| ToUInt64 | Converts the value of the specified Decimal128 to the equivalent 64-bit unsigned integer. |
|
| TryParse | Converts the string representation of a number to its Decimal128 equivalent. A return value indicates whether the conversion succeeded or failed. |
Operators
Extension Methods
See Also