decimal to n-base | ScratchStats