Home > Back-end >  Is there a number into a string function of floating point Numbers
Is there a number into a string function of floating point Numbers

Time:09-22

2.94950000 e-09

This string from the text read, converted into a double precision floating point number function

Atof feel not enough precision

CodePudding user response:

The fscanf (fp, "% lf", & amp; Double);

CodePudding user response:

double s;
2.94950000 e-09 const char * STR="";
Sscanf (STR, "% lf", & amp; S);

CodePudding user response:

In stod
  • Related