Mauricio FernáÏdez wrote: > batsman@tux-chan:~/src/rdocsite/site/ruby$ ri Kernel.Integer > -------------------------------------------------------- Kernel::Integer > Integer( arg ) -> anInteger > ------------------------------------------------------------------------ > Converts arg to a Fixnum or Bignum. Numeric types are converted > directly (with floating point numbers being truncated). If arg is a > String, leading radix indicators (0, 0b, and 0x) are honored. This > behavior is different from that of String#to_i. > Integer(123.999) #=> 123 > Integer("0x1a") #=> 26 > Integer(Time.new) #=> 983770240 But don't forget that Integer( nil ) #=> 0 -- Andrey Kulinich IT Group Software developer Phone/Fax +380 (372) 58-43-10 e-mail: Andrey.Kulinich / itgrp.net http://www.itgrp.net