In previous versions of Delphi (we use Delphi 2009), the TFloatRec record (used in floatToDecimal) was defined as
TFloatRec = packed record
Exponent: Smallint;
Negative: Boolean;
Digits: array[0..20] of AnsiChar;
end;
However in Delphi XE5 (and I think this may have changed in XE3), it is defined as ..
TFloatRec = packed record
Exponent: Smallint;
Negative: Boolean;
Digits: array[0..20] of Byte;
end;
We use this record to convert an extended field to a RawByteString, can anyone suggest what I can do to convert the results of the call to FloatToDecimal
into a RawByteString.
Context
This method is called whilst reading a buffer from a network communication, so it needs to be as quick as possible, without converting codepages, etc.