the simple math behind decimalbinary conversion algorithms following the order of math operations produces the algorithm outlined in  the beginning