repaired encodings of floats and doubles