We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ad6f8a commit 3c5d96eCopy full SHA for 3c5d96e
io/src/OutputStream.cpp
@@ -174,7 +174,7 @@ FmlIoErrorNumber FileOutputStream::writeDouble( double value )
174
return FML_IOERR_RESOURCE_CLOSED;
175
}
176
177
- int err = fprintf( file, "%.8g ", value );
+ int err = fprintf( file, "%.17g ", value );
178
179
if( err < 0 )
180
{
@@ -268,8 +268,9 @@ FmlIoErrorNumber StringOutputStream::writeDouble( double value )
268
269
270
271
-
272
- buffer << value << " ";
+ char tmpValueString[50];
+ sprintf(tmpValueString, "%.17g ", value);
273
+ buffer << tmpValueString;
274
275
return FML_IOERR_NO_ERROR;
276
0 commit comments