Fixed loss of precision when reading doubles and converting to a string.  Use 17 digits for double and 8 for single.