simplify convert_number()