Extract conversion code to strtod.h [ci skip]