RTI Connext C# API
7.0.0
|
IDL 128-bit floating-point type. More...
Inherits IFormattable, IConvertible, IEquatable< LongDouble >, and IComparable< LongDouble >.
Public Member Functions | |
LongDouble (int[] ints) | |
Creates a LongDouble from its 32 bytes, as 4 ints More... | |
LongDouble (decimal value) | |
Creates a LongDouble from a decimal More... | |
LongDouble (double value) | |
Creates a LongDouble from a double More... | |
LongDouble (int value) | |
Creates a LongDouble from an int More... | |
int[] | GetBits () |
Gets the bits in an array of 4 integers More... | |
decimal | ToDecimal () |
Converts from LongDouble to decimal More... | |
override string | ToString () |
Returns ToDecimal().ToString(). More... | |
bool | Equals (LongDouble other) |
Compares with another LongDouble More... | |
int | CompareTo (LongDouble other) |
Compares the result of converting ToDecimal(). More... | |
Static Public Member Functions | |
static | operator decimal (LongDouble value) |
Converts from LongDouble to decimal More... | |
static | operator LongDouble (decimal value) |
Converts from decimal to LongDouble More... | |
Properties | |
int | Int0 [get, set] |
Bytes 1 to 4 of this long double More... | |
int | Int1 [get, set] |
Bytes 5 to 8 of this long double More... | |
int | Int2 [get, set] |
Bytes 9 to 12 of this long double More... | |
int | Int3 [get, set] |
Bytes 13 to 16 of this long double More... | |
IDL 128-bit floating-point type.
This type is used by DDS to represent the IDL long double
type and can be used among platforms for which there isn't a standard definition for a 128-bit floating-point type.
LongDouble can be converted to and from decimal
, but this doesn't ensure interoperability with C, C++ or other applications for which a long double can have different representations. If a distributed system uses different long double representations, the applications are responsible for manually interpreting the individual bytes (provided as Int0 to Int3).
LongDouble | ( | int[] | ints | ) |
Creates a LongDouble from its 32 bytes, as 4 ints
LongDouble | ( | decimal | value | ) |
Creates a LongDouble from a decimal
LongDouble | ( | double | value | ) |
Creates a LongDouble from a double
LongDouble | ( | int | value | ) |
Creates a LongDouble from an int
int CompareTo | ( | LongDouble | other | ) |
Compares the result of converting ToDecimal().
bool Equals | ( | LongDouble | other | ) |
Compares with another LongDouble
int [] GetBits | ( | ) |
Gets the bits in an array of 4 integers
|
explicitstatic |
Converts from LongDouble to decimal
Note that the encoding of this LongDouble is not guaranteed to be compatible with a .NET decimal type.
|
explicitstatic |
Converts from decimal to LongDouble
decimal ToDecimal | ( | ) |
Converts from LongDouble to decimal
Note that the encoding of this LongDouble is not guaranteed to be compatible with a .NET decimal type.
override string ToString | ( | ) |
Returns ToDecimal().ToString().
|
getset |
Bytes 1 to 4 of this long double
|
getset |
Bytes 5 to 8 of this long double
|
getset |
Bytes 9 to 12 of this long double
|
getset |
Bytes 13 to 16 of this long double