zero based number to decimal