Current SVN:
Code: Select all
85 if (*c == 'e')
86 {
87 ++c;
88 //float exp = (float)strtol(c, &t, 10);
89 float exp = (float)strtol10(c, t);
90
91 f *= (float)pow(10.0f, exp);
92 c = t;
93 }
Code: Select all
if (*c == 'e')
{
++c;
//float exp = (float)strtol(c, &t, 10);
bool einv = (*c=='-');
if (einv) c++;
float exp = (float)strtol10(c, t);
if (einv)
exp *= -1.0f;
f *= (float)pow(10.0f, exp);
c = t;
}