From: "Iñaki Baz Castillo" Date: 2008-07-02T07:09:19+09:00 Subject: Is posible String#to_s doesn't add the decimal value if not needed? Hi, I want to convert a string to a Float value: irb> "1.5".to_f => 1.5 But if I do: irb> "1".to_f => 1.0 I get '1.0' instead of just '1'. Is not possible to just get '1' in this case? Thanks a lot. -- Iñaki Baz Castillo