lib/rdf/model/literal/double.rb in rdf-2.2.12 vs lib/rdf/model/literal/double.rb in rdf-3.0.0
- old
+ new
@@ -28,10 +28,10 @@
when 'NAN' then 0/0.0
else Float(value.sub(/\.[eE]/, '.0E')) rescue nil
end
when value.is_a?(::Float) then value
when value.respond_to?(:to_f) then value.to_f
- else Float(value.to_s) rescue nil # FIXME
+ else 0.0 # FIXME
end
end
##
# Converts this literal into its canonical lexical representation.