From: matz@... (Yukihiro Matsumoto) Date: 2002-03-20T18:07:41+09:00 Subject: Re: Why no String#bin? Hi, In message "Why no String#bin?" on 02/03/20, Phil Tomson writes: |We've got: |String#hex |String#oct | |but there is no String#bin. | |It seems that we should have a String#bin for completeness. | |RCR? For this purpose, 1.7 String#to_i takes an optional radix argument, for example: "11".to_i # => 11 "11".to_i(2) # => 3 "11".to_i(8) # => 9 "11".to_i(10 # => 11 "11".to_i(16) # => 17 matz.