I need to concatenate all the numbers from a matrix. However, the current routine will not work for what I need it to:

`N+M10^(1+int(log(N`

The problem I have, is that when a 0 is attempted to be processed through this routine, It simply doesn't get concatenated. If N is 0, a Domain error is thrown. If M is 0, it simply returns N. Does anyone know of, or could create, an alternative routine that will concatenate including 0? Because of other restrictions, I cannot use strings.