fscanfでdouble読むときは%lf

ret =fscanf(fpn,"%lf",&getd);