• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

nlohmann / json / 299
99%
develop: 99%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/actions/dependency-review-action-4.9.0
DEFAULT BRANCH: develop
Ran 28 Feb 2015 05:24PM UTC
Jobs 1
Files 1
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
299

Pull #38

travis-ci

jrandall
Fixes serialization of small floats

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.
Pull Request #38: Feature/small float serialization

2 of 2 new or added lines in 1 file covered. (100.0%)

1350 of 1350 relevant lines covered (100.0%)

259.23 hits per line

Jobs
ID Job ID Ran Files Coverage
1 299.1 28 Feb 2015 05:24PM UTC 0
100.0
Travis Job 299.1
Source Files on build 299
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #299
  • Pull Request #38
  • PR Base - master (#298)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc