In the documentation for the External Term Format, FLOAT_EXT
is described as:
A finite float (i.e. not inf, -inf or NaN) is stored in string format. The format used in sprintf to format the float is “%.20e” (there are more bytes allocated than necessary). To unpack the float, use sscanf with format “%lf”.
What is the string encoding used to encode the string? Is it ASCII? Latin-1? UTF-8? I am guessing that maybe it doesn’t matter since the string should only consist of numbers, .
, +
, and e
, and I further assume these characters have the same byte representation across ASCII, Latin-1, and UTF-8 (that is an assumption and guess, I haven’t checked it). But does anyone know?