Skip to content

Conversation

@M-Burr
Copy link

@M-Burr M-Burr commented Sep 2, 2019

Binary and Decimal

Congratulations! You're submitting your assignment.

@M-Burr M-Burr changed the title added method that takes in binary number & converts to a decimal number. Leaves - Mariya Sep 2, 2019
Copy link

@CheezItMan CheezItMan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, very clever and unusual solution. Nice work

def binary_to_decimal(binary_array)
raise NotImplementedError
decimal_total = 0
binary_array.each do |digit|

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clever!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants