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 | ||
Equals(Object) | (Overrides ValueTypeEquals(Object).) | |
Equals(Decimal128) | ||
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 | (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 | (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 | (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 ==.
| |
(Double to Decimal128) |
Performs an explicit conversion from Double to Decimal128.
| |
(Single to Decimal128) |
Performs an explicit conversion from Single to Decimal128.
| |
(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 Single) |
Performs an explicit conversion from Decimal128 to Single.
| |
(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 Int16) |
Performs an explicit conversion from Decimal128 to Int16.
| |
(Decimal128 to UInt32) |
Performs an explicit conversion from Decimal128 to UInt32.
| |
(Decimal128 to UInt64) |
Performs an explicit conversion from Decimal128 to UInt64.
| |
(Decimal128 to UInt16) |
Performs an explicit conversion from Decimal128 to UInt16.
| |
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.) |