This project has moved and is read-only. For the latest updates, please go here.

Double/ Float string converisons

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

private static readonly RdfDatatype RdfFloat = new RdfDatatype(Float, (o => ((float)o).ToString("R", CultureInfo.InvariantCulture)), (s, l) => Convert.ToSingle(s));
Apr 27, 2014 at 9: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.