Fixed JSON-LD normalization of double to use substr instead of substring.
authorManu Sporny <msporny@digitalbazaar.com>
Tue, 01 Feb 2011 17:04:16 -0500
changeset 20 1f999400e01a
parent 19 95d53b53c8cb
child 21 6ae74cb2abaa
Fixed JSON-LD normalization of double to use substr instead of substring.
spec/latest/index.html
--- a/spec/latest/index.html	Tue Feb 01 17:03:34 2011 -0500
+++ b/spec/latest/index.html	Tue Feb 01 17:04:16 2011 -0500
@@ -1768,7 +1768,7 @@
 var value = 2.33333333333;
 // Convert the value, producing the equivalent output to printf("%1.6e", value);
 var s = (value).toExponential(6); 
-s = s.substring(0, s.indexOf('e') + 2) + 
+s = s.substr(0, s.indexOf('e') + 2) + 
    (s.indexOf('e') == s.length - 3 ? '0' : '') + 
    s.substr(s.indexOf('e') + 2);
 -->