From: chen li Date: 2007-01-15T01:46:17+09:00 Subject: how to translate base 10 number into base 2 number Hi all, I want to write a method to tranlate base 10 number into base 2 number. I want to call the method within itself. But it doesn't work. What is the right way to do something like this? Thanks, Li ##### def ten_to_two(num1) @array=[] if num1>2 first,second=num1.divmod(2) @array<ruby assembly1.rb nil nil >Exit code: 0 ____________________________________________________________________________________ 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