From: Austin Ziegler Date: 2004-09-16T22:32:26+09:00 Subject: Re: Ex-Perl coders: Howz it feel to convert to Ruby? On Thu, 16 Sep 2004 22:26:24 +0900, James Edward Gray II wrote: > On Sep 16, 2004, at 2:44 AM, Robert Klemme wrote: > > Under which circumstances do you need to_s for numbers? What's wrong > > with this? > It's usually when I'm doing something like: > > puts "Total: " + 12345 You're really better off using interpolation there: @total = 12345 puts "Total: #{@total}" Now, you don't have to know whether @total is a Fixnum, String, Float, or even a hypothetical Money class. -austin -- Austin Ziegler * halostatue@gmail.com * Alternate: austin@halostatue.ca : as of this email, I have [ 6 ] Gmail invitations