- 23 3月, 2015 4 次提交
- 01 3月, 2015 1 次提交
-
-
由 Joshua C. Randall 提交于
Now uses std::snprintf() to generate a "%.15g" formatted string for JSON values of type number_float. 15 decimals digits are enough to round-trip an IEEE 754 double from string->double->string and get an identical result. std::snprintf is called twice. Once to determine the required buffer size and then again after allocating a buffer of that size. Note that the buffer size *could* be hardcoded for better performance. "%.15g" should result in strings of maximum length 23, plus one character for the terminating null for a buffer size of 24.
-
- 25 2月, 2015 1 次提交
-
-
由 Niels 提交于
-
- 23 2月, 2015 1 次提交
-
-
由 Niels 提交于
-
- 21 2月, 2015 1 次提交
-
-
由 Niels 提交于
-
- 19 2月, 2015 1 次提交
-
-
由 Niels 提交于
-
- 17 2月, 2015 4 次提交
- 16 2月, 2015 7 次提交
- 15 2月, 2015 6 次提交
- 14 2月, 2015 2 次提交
- 13 2月, 2015 1 次提交
-
-
由 Niels 提交于
-
- 12 2月, 2015 1 次提交
-
-
由 Niels 提交于
-
- 11 2月, 2015 10 次提交