From: "Mark J. Reed" Date: 2003-07-19T05:26:01+09:00 Subject: Re: [SNIPPET] Binary counter On Sat, Jul 19, 2003 at 04:36:23AM +0900, Mauricio Fern�ndez wrote: > > I figured I could just increment an integer and, then convert > > it to binary, but: > > 1) there doesn't seem to be a builtin to_bin method on FixNum. Maybe not, but "%b" % n works nicely. -Mark