Click or drag to resize

Decimal128 Structure

Represents a Decimal128 value.

Namespace:  MongoDB.Bson
Assembly:  MongoDB.Bson (in MongoDB.Bson.dll) Version: 2.5.0+57.Branch.master.Sha.6a4e00a2d91090c65a9b11364b9ebfdb9c7da076
Syntax
[SerializableAttribute]
public struct Decimal128 : IConvertible, 
	IComparable<Decimal128>, IEquatable<Decimal128>

The Decimal128 type exposes the following members.

Constructors
  NameDescription
Public methodDecimal128(Decimal)
Initializes a new instance of the Decimal128 struct.
Public methodDecimal128(Double)
Initializes a new instance of the Decimal128 struct.
Public methodDecimal128(Int32)
Initializes a new instance of the Decimal128 struct.
Public methodDecimal128(Int64)
Initializes a new instance of the Decimal128 struct.
Public methodDecimal128(Single)
Initializes a new instance of the Decimal128 struct.
Public methodDecimal128(UInt32)
Initializes a new instance of the Decimal128 struct.
Public methodDecimal128(UInt64)
Initializes a new instance of the Decimal128 struct.
Top
Properties
  NameDescription
Public propertyStatic memberMaxValue
Gets the maximum value.
Public propertyStatic memberMinValue
Gets the minimum value.
Public propertyStatic memberNegativeInfinity
Represents negative infinity.
Public propertyStatic memberOne
Represents one.
Public propertyStatic memberPositiveInfinity
Represents positive infinity.
Public propertyStatic memberQNaN
Represents a value that is not a number.
Public propertyStatic memberSNaN
Represents a value that is not a number and raises errors when used in calculations.
Public propertyStatic memberZero
Represents zero.
Top
Methods
  NameDescription
Public methodStatic memberCompare
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 methodCompareTo
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 methodEquals(Object)
Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object).)
Public methodEquals(Decimal128)
Indicates whether the current object is equal to another object of the same type.
Public methodStatic memberEquals(Decimal128, Decimal128)
Determines whether the specified Decimal128 instances are considered equal.
Public methodStatic memberFromComponents
Creates a new Decimal128 value from its components.
Public methodStatic memberFromIEEEBits
Creates a new Decimal128 value from the IEEE encoding bits.
Public methodStatic memberGetExponent
Gets the exponent of a Decimal128 value.
Public methodGetHashCode
Returns the hash code for this instance.
(Overrides ValueTypeGetHashCode.)
Public methodGetIEEEHighBits
Gets the high order 64 bits of the binary representation of this instance.
Public methodGetIEEELowBits
Gets the low order 64 bits of the binary representation of this instance.
Public methodStatic memberGetSignificandHighBits
Gets the high bits of the significand of a Decimal128 value.
Public methodStatic memberGetSignificandLowBits
Gets the high bits of the significand of a Decimal128 value.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberIsInfinity
Returns a value indicating whether the specified number evaluates to negative or positive infinity.
Public methodStatic memberIsNaN
Returns a value indicating whether the specified number is not a number.
Public methodStatic memberIsNegative
Returns a value indicating whether the specified number is negative.
Public methodStatic memberIsNegativeInfinity
Returns a value indicating whether the specified number evaluates to negative infinity.
Public methodStatic memberIsPositiveInfinity
Returns a value indicating whether the specified number evaluates to positive infinity.
Public methodStatic memberIsQNaN
Returns a value indicating whether the specified number is a quiet not a number.
Public methodStatic memberIsSNaN
Returns a value indicating whether the specified number is a signaled not a number.
Public methodStatic memberIsZero
Returns a value indicating whether the specified number is zero.
Public methodStatic memberNegate
Negates the specified x.
Public methodStatic memberParse
Converts the string representation of a number to its Decimal128 equivalent.
Public methodStatic memberToByte
Converts the value of the specified Decimal128 to the equivalent 8-bit unsigned integer.
Public methodStatic memberToDecimal
Converts the value of the specified Decimal128 to the equivalent Decimal.
Public methodStatic memberToDouble
Converts the value of the specified Decimal128 to the equivalent Double.
Public methodStatic memberToInt16
Converts the value of the specified Decimal128 to the equivalent 16-bit signed integer.
Public methodStatic memberToInt32
Converts the value of the specified Decimal128 to the equivalent 32-bit signed integer.
Public methodStatic memberToInt64
Converts the value of the specified Decimal128 to the equivalent 64-bit signed integer.
Public methodStatic memberToSByte
Converts the value of the specified Decimal128 to the equivalent 8-bit signed integer.
Public methodStatic memberToSingle
Converts the value of the specified Decimal128 to the equivalent Single.
Public methodToString
Returns the fully qualified type name of this instance.
(Overrides ValueTypeToString.)
Public methodStatic memberToUInt16
Converts the value of the specified Decimal128 to the equivalent 16-bit unsigned integer.
Public methodStatic memberToUInt32
Converts the value of the specified Decimal128 to the equivalent 32-bit unsigned integer.
Public methodStatic memberToUInt64
Converts the value of the specified Decimal128 to the equivalent 64-bit unsigned integer.
Public methodStatic memberTryParse
Converts the string representation of a number to its Decimal128 equivalent. A return value indicates whether the conversion succeeded or failed.
Top
Operators
  NameDescription
Public operatorStatic memberEquality
Implements the operator ==.
Public operatorStatic member(Double to Decimal128)
Performs an explicit conversion from Double to Decimal128.
Public operatorStatic member(Single to Decimal128)
Performs an explicit conversion from Single to Decimal128.
Public operatorStatic member(Decimal128 to Byte)
Performs an explicit conversion from Decimal128 to Byte.
Public operatorStatic member(Decimal128 to Char)
Performs an explicit conversion from Decimal128 to Char.
Public operatorStatic member(Decimal128 to Decimal)
Performs an explicit conversion from Decimal128 to Decimal.
Public operatorStatic member(Decimal128 to Double)
Performs an explicit conversion from Decimal128 to Double.
Public operatorStatic member(Decimal128 to Single)
Performs an explicit conversion from Decimal128 to Single.
Public operatorStatic member(Decimal128 to Int32)
Performs an explicit conversion from Decimal128 to Int32.
Public operatorStatic member(Decimal128 to Int64)
Performs an explicit conversion from Decimal128 to Int64.
Public operatorStatic member(Decimal128 to SByte)
Performs an explicit conversion from Decimal128 to SByte.
Public operatorStatic member(Decimal128 to Int16)
Performs an explicit conversion from Decimal128 to Int16.
Public operatorStatic member(Decimal128 to UInt32)
Performs an explicit conversion from Decimal128 to UInt32.
Public operatorStatic member(Decimal128 to UInt64)
Performs an explicit conversion from Decimal128 to UInt64.
Public operatorStatic member(Decimal128 to UInt16)
Performs an explicit conversion from Decimal128 to UInt16.
Public operatorStatic memberGreaterThan
Returns a value indicating whether a specified Decimal128 is greater than another specified Decimal128.
Public operatorStatic memberGreaterThanOrEqual
Returns a value indicating whether a specified Decimal128 is greater than or equal to another another specified Decimal128.
Public operatorStatic member(Byte to Decimal128)
Performs an implicit conversion from Byte to Decimal128.
Public operatorStatic member(Decimal to Decimal128)
Performs an implicit conversion from Decimal to Decimal128.
Public operatorStatic member(Int16 to Decimal128)
Performs an implicit conversion from Int16 to Decimal128.
Public operatorStatic member(Int32 to Decimal128)
Performs an implicit conversion from Int32 to Decimal128.
Public operatorStatic member(Int64 to Decimal128)
Performs an implicit conversion from Int64 to Decimal128.
Public operatorStatic member(SByte to Decimal128)
Performs an implicit conversion from SByte to Decimal128.
Public operatorStatic member(UInt16 to Decimal128)
Performs an implicit conversion from UInt16 to Decimal128.
Public operatorStatic member(UInt32 to Decimal128)
Performs an implicit conversion from UInt32 to Decimal128.
Public operatorStatic member(UInt64 to Decimal128)
Performs an implicit conversion from UInt64 to Decimal128.
Public operatorStatic memberInequality
Implements the operator !=.
Public operatorStatic memberLessThan
Returns a value indicating whether a specified Decimal128 is less than another specified Decimal128.
Public operatorStatic memberLessThanOrEqual
Returns a value indicating whether a specified Decimal128 is less than or equal to another another specified Decimal128.
Top
Extension Methods
  NameDescription
Public Extension MethodToBson
Serializes an object to a BSON byte array.
(Defined by BsonExtensionMethods.)
Public Extension MethodToBsonDocument
Serializes an object to a BsonDocument.
(Defined by BsonExtensionMethods.)
Public Extension MethodToJson
Serializes an object to a JSON string.
(Defined by BsonExtensionMethods.)
Top
See Also