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

nlohmann / json / 299 / 1
99%
develop: 99%

Build:
Build:
LAST BUILD BRANCH: dependabot/github_actions/step-security/harden-runner-2.15.1
DEFAULT BRANCH: develop
Ran 28 Feb 2015 05:24PM UTC
Files 1
Run time 1s
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

28 Feb 2015 05:20PM UTC coverage: 100.0%. Remained the same
299.1

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

1350 of 1350 relevant lines covered (100.0%)

259.23 hits per line

Source Files on job 299.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 299
  • Travis Job 299.1
  • e5c5411a on github
  • Prev Job for on master (#298.1)
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