lib/rdf/model/literal/double.rb in rdf-1.1.8 vs lib/rdf/model/literal/double.rb in rdf-1.1.9

- old
+ new

@@ -6,11 +6,11 @@ # RDF::Literal(1.0) + 0.5 #=> RDF::Literal(1.5) # RDF::Literal(3.0) - 6 #=> RDF::Literal(-3.0) # RDF::Literal(Math::PI) * 2 #=> RDF::Literal(Math::PI * 2) # RDF::Literal(Math::PI) / 2 #=> RDF::Literal(Math::PI / 2) # - # @see http://www.w3.org/TR/xmlschema-2/#double + # @see http://www.w3.org/TR/xmlschema11-2/#double # @since 0.2.1 class Double < Numeric DATATYPE = XSD.double GRAMMAR = /^NaN|(?:[\+\-]?(?:INF|(?:\d+(\.\d*)?([eE][\+\-]?\d+)?)))$/.freeze @@ -36,10 +36,10 @@ ## # Converts this literal into its canonical lexical representation. # # @return [RDF::Literal] `self` - # @see http://www.w3.org/TR/xmlschema-2/#double + # @see http://www.w3.org/TR/xmlschema11-2/#double def canonicalize! # Can't use simple %f transformation due to special requirements from # N3 tests in representation @string = case when @object.nan? then 'NaN'