0
I want to make binary code to text?
I want to make Binary code converter program with Ruby, how i can convert multiple Binary code?
6 Answers
+ 7
Binary -> Decimal
https://apidock.com/ruby/String/to_i
Decimal -> ASCII char
https://apidock.com/ruby/Integer/chr
+ 6
What have you done so far in coding for this task? Please show us your attempt (link your code done in playground here) so that we can help you.
+ 5
https://code.sololearn.com/ckHIwp1OLj2x/?ref=app
https://code.sololearn.com/crYdp0G5a7Kb/?ref=app
https://code.sololearn.com/c9y4dNs2gKQ2/?ref=app
https://code.sololearn.com/c8wt4NUl3j2o/?ref=app
For this common questions please first use searchbar
+ 4
Phuwanai Chaosuan If you look at the links I provided, you should be able to come up with something like:
puts gets.to_i(2).chr
+ 4
You can try this:
code = gets
puts code.to_i(2).chr
0
Sorry for late this is code playground link:https://code.sololearn.com/c7bbeaBJxajK/#rb
I make like this because i want to develop to language translator.
<Sorry for bad English>