This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

to_d

        # Float.to_d

(from ruby core)
---
    float.to_d             -> bigdecimal
    float.to_d(precision)  -> bigdecimal

---

Returns the value of `float` as a BigDecimal. The `precision` parameter
is used to determine the number of significant digits for the result
(the default is Float::DIG).

    require 'bigdecimal'
    require 'bigdecimal/util'

    0.5.to_d         # => 0.5e0
    1.234.to_d(2)    # => 0.12e1

See also BigDecimal::new.



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.