de-duplicate number conversion code (nw)