@annotate
def factoradic_to_decimal(factoradic):
    res = 0
    digits = list(str(factoradic))
    positions = list(reversed(range(0, len(digits))))
    print_simple('Positions', positions, newline=False)
    for k, digit in enumerate(digits):
        # digit x k !
        # e.g. 5 x 5 ! = 5 x (5!)
        res += factpos(int(digit), positions[k])
    print_simple('fac2dec result', res, newline=False)
    return res
Converts a factoradic number to decimal form.
dataset/ETHPy150Open christabor/MoAL/MOAL/computer_organization/factoradic.py/factoradic_to_decimal