Can I treat Real64 as a double? If not, make sense to convert a Real64 into Double?
@ming.cheng
Thanks for reaching out to us.
Real64 contains the MagnitudeType property which defines how to display or interpret the value contained in Real64. It is used to maintain the presentation (fractions, or exponentials) sent by exchanges.
For example, some exchanges may use fractions to represent prices.
Real64 can support this kind of data by using the MagnitudeType property (rfa::data::Divisor256). However, Real64 can be converted to Double for calculation.
The sample code looks like this:
case DataBuffer::RealEnum: write("%f ", dataBuffer.getDouble()); write("%s", dataBuffer.getAsString().c_str()); break;
The output is:
I hope that this information is of help.
Very clear. thanks.