From: Xavier Noria Date: 2006-08-19T04:40:59+09:00 Subject: Re: Bug in sprintf? On Aug 18, 2006, at 8:00 PM, Daniel Martin wrote: > When you use '%d' in a sprintf(), ruby does a conversion of the > argument to an Integer using Kernel#Integer and then does the > conversion of the Integer to a portion of the output string as > documented. How did you figure that out? I started at sprintf.c and browsed a bit around from rb_f_sprintf on, but I think I was in the wrong path. Or is it the call to rb_str_to_inum equivalent to Kernel#Integer? -- fxn