From: Jason Roelofs Date: 2007-10-05T23:31:20+09:00 Subject: Re: Hash assignment (what's happening?) ------=_Part_20486_6217803.1191594681602 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Prefixing a '0' to a number makes it octal. Either make it a string or don't add the 0. Jason On 10/5/07, Hector Quiroz wrote: > > From within irb, I'm creating a hash and populating it with the > following data. > > irb(main):007:0> {:QHector => 1967, :WKelly => 2551, :ECron => 0220, > :VLaura => 4003, :LWalter => 1188} > > > > Why is the value for the ':ECron' coming back as 144 instead of 0220? > > => {:ECron=>144, :VLaura=>4003, :LWalter=>1188, :QHector=>1967, > :WKelly=>2551} > irb(main):008:0> > > > > Thanks for your help in advance. > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_20486_6217803.1191594681602--