🎉 Exercism Research is now launched. Help Exercism, help science and have some fun at research.exercism.io 🎉
Track PHP
PHP track

Binary

An exercise from the PHP track
easy

About this exercise

Convert a binary number, represented as a string (e.g. '101010'), to its decimal equivalent using first principles

math
View all solutions