From: chen li Date: 2007-01-15T02:19:22+09:00 Subject: Re: how to translate base 10 number into base 2 number > This doesn't answer your question, but in case you > were not aware, Ruby > will do this conversion for you: > > > a = 125 > puts a.to_s(2) > 1111101 > > > Kirk Haines Thanks. But is is possible do the opposite, from 111101 to 125 change? Li ____________________________________________________________________________________ 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news