Added support for n-1 digits, e.g. 4 = IV, 9 = IX.