1. 03 Apr, 2015 2 commits
  2. 01 Apr, 2015 1 commit
  3. 31 Mar, 2015 6 commits
  4. 27 Mar, 2015 1 commit
  5. 26 Mar, 2015 1 commit
  6. 24 Mar, 2015 6 commits
  7. 23 Mar, 2015 4 commits
  8. 22 Mar, 2015 4 commits
  9. 02 Mar, 2015 1 commit
  10. 01 Mar, 2015 10 commits
  11. 28 Feb, 2015 2 commits
    • Joshua C. Randall's avatar
      Fixes serialization of small floats · 7bfcbe28
      Joshua C. Randall authored
      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.
      7bfcbe28
    • Joshua C. Randall's avatar
      ef3ad895
  12. 25 Feb, 2015 1 commit
  13. 24 Feb, 2015 1 commit