Conversion of numbers in Z