Skip to content

Water Class - Hanh Solo submission#47

Open
seattlefurby17 wants to merge 3 commits intoAda-C14:masterfrom
seattlefurby17:master
Open

Water Class - Hanh Solo submission#47
seattlefurby17 wants to merge 3 commits intoAda-C14:masterfrom
seattlefurby17:master

Conversation

@seattlefurby17
Copy link

Binary and Decimal

Congratulations! You're submitting your assignment.

Copy link
Collaborator

@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, you hit the learning goals here. Well done.

Comment on lines +11 to +14
binary_array.each do |digit|
sum_of_digits += digit * (2**power_of_digit)
power_of_digit -= 1
end
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is good, just fixing indentation.

Suggested change
binary_array.each do |digit|
sum_of_digits += digit * (2**power_of_digit)
power_of_digit -= 1
end
binary_array.each do |digit|
sum_of_digits += digit * (2**power_of_digit)
power_of_digit -= 1
end

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