Changes

Ruby Number Classes and Conversions

4 bytes added, 23:37, 8 April 2008
Converting Numbers in Ruby
== Converting Numbers in Ruby ==
Numbers can be converted from one type to another using the Ruby ''Integer'' and ''Float'' methods. This These methods takes take as an argument the value to be converted. For example:
=== Convert Floating Point Number to an Integer ===