summaryrefslogtreecommitdiffstats
path: root/raul
diff options
context:
space:
mode:
Diffstat (limited to 'raul')
-rw-r--r--raul/AtomRDF.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/raul/AtomRDF.hpp b/raul/AtomRDF.hpp
index 84e8287..10e3444 100644
--- a/raul/AtomRDF.hpp
+++ b/raul/AtomRDF.hpp
@@ -76,6 +76,8 @@ atom_to_node(Redland::World& world, const Atom& atom)
os.precision(20);
os << atom.get_float();
str = os.str();
+ if (str.find(".") == std::string::npos)
+ str += ".0";
// xsd:decimal -> pretty decimal (float) literals in Turtle
type = librdf_new_uri(world.world(), CUC("http://www.w3.org/2001/XMLSchema#decimal"));
break;