Commit 191fdb4e authored by zhaoyunfei's avatar zhaoyunfei

fix bug

parent 72806ec7
...@@ -1451,7 +1451,8 @@ namespace ajson ...@@ -1451,7 +1451,8 @@ namespace ajson
#ifdef _MSC_VER #ifdef _MSC_VER
_gcvt_s(buffer, 63 , val, 8); _gcvt_s(buffer, 63 , val, 8);
#else #else
gcvt(val, 62, buffer); sprintf(buffer,"%.8f",val);
// gcvt(val, 62, buffer);
#endif // MSVC #endif // MSVC
size_t len = std::strlen(buffer); size_t len = std::strlen(buffer);
if (buffer[len - 1] == '.') if (buffer[len - 1] == '.')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment