Class DoubleValue
Represents a double precision floating point value.
Inherited Members
Namespace: Oracle.NoSQL.SDK
Assembly: Oracle.NoSQL.SDK.dll
Syntax
public class DoubleValue : FieldValue
Remarks
This class is used to represent values of NoSQL data types
Double and Float. This value is represented
by a C# type double
.
Note that when converted to JSON, instances of DoubleValue that contain special values such as PositiveInfinity, NegativeInfinity and NaN will be represented by strings "Infinity", "-Infinity" and "NaN" respectively and thus cannot be converted back from JSON to instances of DoubleValue.
Constructors
Name | Description |
---|---|
DoubleValue(Double) |
Initializes a new instance of the DoubleValue with
the specified double value.
|
Properties
Name | Description |
---|---|
AsDouble |
Gets the value of this instance as double .
|
DbType | Gets DbType of this instance which represents the type of this value. |
Methods
Name | Description |
---|---|
SerializeAsJson(Utf8JsonWriter, JsonOutputOptions) | Writes JSON representation of the value to the stream represented by Utf8JsonWriter. |
ToDecimal() | Converts the value represented by this instance to a decimal number. |
ToInt32() | Converts the value represented by this instance to a 32-bit signed integer. |
ToInt64() | Converts the value represented by this instance to a 64-bit signed integer. |