Double/ Float string converisons

Apr 25, 2014 at 12:44 PM
In rdfDatatypes for float/double it needs to be changed to ".ToString("R",...."

http://stackoverflow.com/questions/611552/c-sharp-converting-20-digit-precision-double-to-string-and-back-again

private static readonly RdfDatatype RdfFloat = new RdfDatatype(Float, (o => ((float)o).ToString("R", CultureInfo.InvariantCulture)), (s, l) => Convert.ToSingle(s));
Coordinator
Apr 27, 2014 at 8:28 AM
Agreed it probably should use this format. Though if you read the docs, the Roundtrip format will default to the same as General (which is what we use) and only adds the extra two positions of precision if the roundtrip fails.

The problem with changing it now is that it could affect querying against existing stores. I'll log this as an issue, but I think it can only be addressed in a release which "breaks" existing store compatibility.