Decimal128 Structure |
Namespace: MongoDB.Bson
The Decimal128 type exposes the following members.
Name | Description | |
---|---|---|
Decimal128(Decimal) |
Initializes a new instance of the Decimal128 struct.
| |
Decimal128(Double) |
Initializes a new instance of the Decimal128 struct.
| |
Decimal128(Int32) |
Initializes a new instance of the Decimal128 struct.
| |
Decimal128(Int64) |
Initializes a new instance of the Decimal128 struct.
| |
Decimal128(Single) |
Initializes a new instance of the Decimal128 struct.
| |
Decimal128(UInt32) |
Initializes a new instance of the Decimal128 struct.
| |
Decimal128(UInt64) |
Initializes a new instance of the Decimal128 struct.
|
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.
|
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(Decimal128) | Indicates whether the current object is equal to another object of the same type. | |
Equals(Object) | Indicates whether this instance and a specified object are equal. (Overrides ValueTypeEquals(Object).) | |
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.
|
Name | Description | |
---|---|---|
Equality |
Implements the operator ==.
| |
(Decimal128 to Byte) |
Performs an explicit conversion from Decimal128 to Byte.
| |
(Decimal128 to Char) |
Performs an explicit conversion from Decimal128 to Char.
| |
(Decimal128 to Decimal) |
Performs an explicit conversion from Decimal128 to Decimal.
| |
(Decimal128 to Double) |
Performs an explicit conversion from Decimal128 to Double.
| |
(Decimal128 to Int16) |
Performs an explicit conversion from Decimal128 to Int16.
| |
(Decimal128 to Int32) |
Performs an explicit conversion from Decimal128 to Int32.
| |
(Decimal128 to Int64) |
Performs an explicit conversion from Decimal128 to Int64.
| |
(Decimal128 to SByte) |
Performs an explicit conversion from Decimal128 to SByte.
| |
(Decimal128 to Single) |
Performs an explicit conversion from Decimal128 to Single.
| |
(Decimal128 to UInt16) |
Performs an explicit conversion from Decimal128 to UInt16.
| |
(Decimal128 to UInt32) |
Performs an explicit conversion from Decimal128 to UInt32.
| |
(Decimal128 to UInt64) |
Performs an explicit conversion from Decimal128 to UInt64.
| |
(Double to Decimal128) |
Performs an explicit conversion from Double to Decimal128.
| |
(Single to Decimal128) |
Performs an explicit conversion from Single to Decimal128.
| |
GreaterThan |
Returns a value indicating whether a specified Decimal128 is greater than another specified Decimal128.
| |
GreaterThanOrEqual |
Returns a value indicating whether a specified Decimal128 is greater than or equal to another another specified Decimal128.
| |
(Byte to Decimal128) |
Performs an implicit conversion from Byte to Decimal128.
| |
(Decimal to Decimal128) |
Performs an implicit conversion from Decimal to Decimal128.
| |
(Int16 to Decimal128) |
Performs an implicit conversion from Int16 to Decimal128.
| |
(Int32 to Decimal128) |
Performs an implicit conversion from Int32 to Decimal128.
| |
(Int64 to Decimal128) |
Performs an implicit conversion from Int64 to Decimal128.
| |
(SByte to Decimal128) |
Performs an implicit conversion from SByte to Decimal128.
| |
(UInt16 to Decimal128) |
Performs an implicit conversion from UInt16 to Decimal128.
| |
(UInt32 to Decimal128) |
Performs an implicit conversion from UInt32 to Decimal128.
| |
(UInt64 to Decimal128) |
Performs an implicit conversion from UInt64 to Decimal128.
| |
Inequality |
Implements the operator !=.
| |
LessThan |
Returns a value indicating whether a specified Decimal128 is less than another specified Decimal128.
| |
LessThanOrEqual |
Returns a value indicating whether a specified Decimal128 is less than or equal to another another specified Decimal128.
|
Name | Description | |
---|---|---|
ToBson |
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.) | |
ToBsonDocument |
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.) | |
ToJson |
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.) |