RTI Connext C# API Version 7.2.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).
Rti.Types.LongDouble.LongDouble | ( | int[] | ints | ) |
Creates a LongDouble from its 32 bytes, as 4 ints
|
inline |
Creates a LongDouble from a decimal
|
inline |
Creates a LongDouble from a double
|
inline |
Creates a LongDouble from an int
int[] Rti.Types.LongDouble.GetBits | ( | ) |
Gets the bits in an array of 4 integers
decimal Rti.Types.LongDouble.ToDecimal | ( | ) |
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 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
override string Rti.Types.LongDouble.ToString | ( | ) |
Returns ToDecimal().ToString().
bool Rti.Types.LongDouble.Equals | ( | LongDouble | other | ) |
Compares with another LongDouble
int Rti.Types.LongDouble.CompareTo | ( | LongDouble | other | ) |
Compares the result of converting ToDecimal().
|
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