Added a paragraph on normalizing double values.
authorManu Sporny <msporny@digitalbazaar.com>
Tue, 01 Feb 2011 16:43:19 -0500
changeset 18 0f25798ac02f
parent 17 b37c22ec8210
child 19 95d53b53c8cb
Added a paragraph on normalizing double values.
spec/latest/index.html
--- a/spec/latest/index.html	Tue Feb 01 15:41:33 2011 -0500
+++ b/spec/latest/index.html	Tue Feb 01 16:43:19 2011 -0500
@@ -1752,6 +1752,17 @@
 -->
 </pre>
 
+<p>When normalizing <strong>xsd:double</strong> values, implementers MUST
+ensure that the normalized value is a string. In order to generate the
+string from a <strong>double</code> value, output equivalent to the
+<code>printf("%1.6e", value)</code> function in C MUST be used where
+<strong>"%1.6e"</strong> is the string formatter and <strong>value</strong>
+is the value to be converted.</p>
+
+<p class="note">When data needs to be normalized, JSON-LD authors should
+not use values that are going to undergo automatic conversion. This is due
+to the lossy nature of <strong>xsd:double</strong> values.</p>
+
 </section>
 
 </section>