Atom - - Binary to Integer


Tags: math , number , array , base

Arity: monadic

This atom is monadic, which means it takes one argument.


Convert a list of digits from binary (base 2) to a number. Vectorizes at depth 1.


The digits don't actually need to be in the appropriate range or even integers. It just adds the last element, double the second last element, quadruple the third last element, etc.


This atom should work roughly the same way as or very similarly in concept to the following code snippets (some edge case exceptions may exist):