Atom - - Decimal 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 decimal (base 10) 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, ten times the second last element, one hundred times 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):