I use the older functions Str
and Val
to write and read values that need to be persistent across different locales, but can you instruct Str
to always format a floating point number in scientific format?
I.e I want all floating point numbers to be formatted this way and fit inside 16 characters:
-1.234567890E-34
(2 digits is sufficient for the exponent). This maximizes precision and dynamic range for a given storage size.