Converting decimal numbers to scientific notation