From: David Garamond Date: 2004-03-19T17:04:54+09:00 Subject: Re: Zero padding in Fixnum#to_s Yukihiro Matsumoto wrote: > In that case, use rjust(16, "0"), which is designed for the particular > case. I feel > > puts "64bit checksum is #{chk.to_s(16).rjust(16, '0')}" > > is lot easier to understand than > > puts "64bit checksum is #{chk.to_s(16, 16)}" Ok, you're the boss :-) Thanks for considering the idea. -- dave