This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.
# Float.to_int (from ruby core) --- to_int() --- Returns `self` truncated to an Integer. 1.2.to_i # => 1 (-1.2).to_i # => -1 Note that the limited precision of floating-point arithmetic may lead to surprising results: (0.3 / 0.1).to_i # => 2 (!) Float#to_int is an alias for Float#to_i. (This method is an alias for Float#to_i.) Returns `self` truncated to an Integer. 1.2.to_i # => 1 (-1.2).to_i # => -1 Note that the limited precision of floating-point arithmetic may lead to surprising results: (0.3 / 0.1).to_i # => 2 (!) Float#to_int is an alias for Float#to_i.
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.