2. Actually, your algorithm first turns the string (advanced data type) out of the basic data type. In the process of turning, you need to pay attention to whether the decimal point at the back has been erased. If it is not erased, it can be converted normally.