}
if (curChar == 'e' || curChar == 'E')
curChar = readInt(stream, &exponent);
- *real = ( integerPart + (integerPart>0 ? 1. : -1.) * (float)fractionalPart
+ *real = ( integerPart + (integerPart>=0 ? 1. : -1.) * (float)fractionalPart
/ pow(10,countZeros+floor(log10(fractionalPart>0 ? fractionalPart : 1)+1)) )
* pow(10,exponent);
+
return curChar; //separator or endline
}