Hi,

In message "Zero padding in Fixnum#to_s"
    on 04/03/19, David Garamond <lists / zara.6.isreserved.com> writes:

|What about adding zero padding (rjust by "0") by specifying an optional 
|second argument? Don't you think it's little nicer to be able to say:
|
|  puts "64bit checksum is #{chk.to_s(16, 16)}"
|
|instead of having to say:
|
|  puts "64bit checksum is #{chk.to_s(16).rjust(16, '0')}"

I prefer

  printf "64bit checksum is %016x\n", chk

							matz.