From: Wes Gamble Date: 2006-03-22T07:43:30+09:00 Subject: Re: Newbie: How do I get hex formatted bytes from a file? Daniel, Not to be obtuse, but what is the # sign for in the specification? And what is the mod 100 -> 0x64 business about? wg Daniel Harple wrote: > On Mar 21, 2006, at 11:28 PM, Wes Gamble wrote: > >> Wes > Use printf/sprintf/% > > Ex: > puts "%#x" % 100 -> 0x64 > > -- Daniel -- Posted via http://www.ruby-forum.com/.