From: Ak 756 Date: 2007-03-26T10:26:35+09:00 Subject: how to tranlsate number to binary? Hi, I am a ruby newbie. I want to write a program which will scan a input file, change every digital number into 4 bits len's binary number. For example, for input.txt as 903 1047 I will get a new file as 100100000011 0001000001000111 Would anyboby kindly help to tell me how to do this? -- Posted via http://www.ruby-forum.com/.