Re: print as a base 10 number



mike7411@xxxxxxxxx wrote:
If you have a string of a few hundred ones and zeros that represents a
binary number, what is the best way to print this as a base 10 number?

Try ruby :

puts "00101010111010101...101111111111000000000101110101010".to_i(2)


--
:wq
^X^Cy^K^X^C^C^C^C
.