From 40a46333d16f4d4857c746044691b844c18c56a1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 24 Sep 2011 06:22:25 +0000 Subject: Fix writing of invalid syntax git-svn-id: http://svn.drobilla.net/lad/trunk/raul@3494 a436a847-0d15-0410-975c-d299462d15a1 --- raul/AtomRDF.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/raul/AtomRDF.hpp b/raul/AtomRDF.hpp index b5aa0f4..ec3a638 100644 --- a/raul/AtomRDF.hpp +++ b/raul/AtomRDF.hpp @@ -92,10 +92,9 @@ atom_to_node(Sord::Model& model, const Atom& atom) if (std::isnan(atom.get_float()) || std::isinf(atom.get_float())) break; os.precision(8); + os << std::fixed << std::showpoint; os << atom.get_float(); str = os.str(); - if (str.find(".") == std::string::npos) - str += ".0"; // xsd:decimal -> pretty decimal (float) literals in Turtle type = sord_new_uri(world.world(), CUC(RAUL_NS_XSD "decimal")); break; -- cgit v1.2.1