Class: Float

Inherits:
Object
  • Object
show all
Defined in:
rtm/lib/rtm/sugar/occurrence/dynamic_value.rb

Instance Method Summary

Instance Method Details

- (Object) to_xsd_double



45
46
47
48
49
50
51
52
53
54
55
56
# File 'rtm/lib/rtm/sugar/occurrence/dynamic_value.rb', line 45

def to_xsd_double
  s = self.to_s
  
  case s
  when "Infinity"
    "INF"
  when "-Infinity"
    "-INF"
  else
    s
  end
end