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 | | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Public propertyStatic member | MaxValue | Gets the maximum value. | | Public propertyStatic member | MinValue | Gets the minimum value. | | Public propertyStatic member | NegativeInfinity | Represents negative infinity. | | Public propertyStatic member | One | Represents one. | | Public propertyStatic member | PositiveInfinity | Represents positive infinity. | | Public propertyStatic member | QNaN | Represents a value that is not a number. | | Public propertyStatic member | SNaN | Represents a value that is not a number and raises errors when used in calculations. | | Public propertyStatic member | Zero | Represents zero. |

Top

Methods

| | Name | Description | | | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | | Public methodStatic member | 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. | | Public method | 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. | | Public method | Equals(Object) | Indicates whether this instance and a specified object are equal. (Overrides ValueTypeEquals(Object).) | | Public method | Equals(Decimal128) | Indicates whether the current object is equal to another object of the same type. | | Public methodStatic member | Equals(Decimal128, Decimal128) | Determines whether the specified Decimal128 instances are considered equal. | | Public methodStatic member | FromComponents | Creates a new Decimal128 value from its components. | | Public methodStatic member | FromIEEEBits | Creates a new Decimal128 value from the IEEE encoding bits. | | Public methodStatic member | GetExponent | Gets the exponent of a Decimal128 value. | | Public method | GetHashCode | Returns the hash code for this instance. (Overrides ValueTypeGetHashCode.) | | Public method | GetIEEEHighBits | Gets the high order 64 bits of the binary representation of this instance. | | Public method | GetIEEELowBits | Gets the low order 64 bits of the binary representation of this instance. | | Public methodStatic member | GetSignificandHighBits | Gets the high bits of the significand of a Decimal128 value. | | Public methodStatic member | GetSignificandLowBits | Gets the high bits of the significand of a Decimal128 value. | | Public method | GetType | Gets the Type of the current instance. (Inherited from Object.) | | Public methodStatic member | IsInfinity | Returns a value indicating whether the specified number evaluates to negative or positive infinity. | | Public methodStatic member | IsNaN | Returns a value indicating whether the specified number is not a number. | | Public methodStatic member | IsNegative | Returns a value indicating whether the specified number is negative. | | Public methodStatic member | IsNegativeInfinity | Returns a value indicating whether the specified number evaluates to negative infinity. | | Public methodStatic member | IsPositiveInfinity | Returns a value indicating whether the specified number evaluates to positive infinity. | | Public methodStatic member | IsQNaN | Returns a value indicating whether the specified number is a quiet not a number. | | Public methodStatic member | IsSNaN | Returns a value indicating whether the specified number is a signaled not a number. | | Public methodStatic member | IsZero | Returns a value indicating whether the specified number is zero. | | Public methodStatic member | Negate | Negates the specified x. | | Public methodStatic member | Parse | Converts the string representation of a number to its Decimal128 equivalent. | | Public methodStatic member | ToByte | Converts the value of the specified Decimal128 to the equivalent 8-bit unsigned integer. | | Public methodStatic member | ToDecimal | Converts the value of the specified Decimal128 to the equivalent Decimal. | | Public methodStatic member | ToDouble | Converts the value of the specified Decimal128 to the equivalent Double. | | Public methodStatic member | ToInt16 | Converts the value of the specified Decimal128 to the equivalent 16-bit signed integer. | | Public methodStatic member | ToInt32 | Converts the value of the specified Decimal128 to the equivalent 32-bit signed integer. | | Public methodStatic member | ToInt64 | Converts the value of the specified Decimal128 to the equivalent 64-bit signed integer. | | Public methodStatic member | ToSByte | Converts the value of the specified Decimal128 to the equivalent 8-bit signed integer. | | Public methodStatic member | ToSingle | Converts the value of the specified Decimal128 to the equivalent Single. | | Public method | ToString | Returns the fully qualified type name of this instance. (Overrides ValueTypeToString.) | | Public methodStatic member | ToUInt16 | Converts the value of the specified Decimal128 to the equivalent 16-bit unsigned integer. | | Public methodStatic member | ToUInt32 | Converts the value of the specified Decimal128 to the equivalent 32-bit unsigned integer. | | Public methodStatic member | ToUInt64 | Converts the value of the specified Decimal128 to the equivalent 64-bit unsigned integer. | | Public methodStatic member | TryParse | Converts the string representation of a number to its Decimal128 equivalent. A return value indicates whether the conversion succeeded or failed. |

Top

Operators

Extension Methods

See Also

Reference