Class: DBus::Data::Double
Overview
Double-precision floating point number.
Constant Summary collapse
- FORMAT =
Format.new("E", "G")
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value) ⇒ Double
constructor
A new instance of Double.
Methods inherited from Fixed
Methods inherited from Basic
basic?, from_typed, type, #type
Methods inherited from Base
#==, assert_type_matches_class, basic?, #eql?, fixed?, from_typed, #type
Constructor Details
#initialize(value) ⇒ Double
Returns a new instance of Double.
391 392 393 394 395 |
# File 'lib/dbus/data.rb', line 391 def initialize(value) value = value.value if value.is_a?(self.class) value = Kernel.Float(value) super(value) end |