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

moonbitlang / core / 7059
88%

Build:
DEFAULT BRANCH: main
Ran 14 Oct 2026 10:09AM UTC
Jobs 1
Files 439
Run time 1min
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

14 Oct 2026 10:05AM UTC coverage: 89.497% (+0.04%) from 89.459%
7059

push

github

bobzhang
fix(float): Show for Float prints the float's shortest digits

Float::to_string was self.to_double().to_string(): the shortest digits of
the double the float widens to, so Float(0.1) printed 0.10000000149011612
and Float(3.2) printed 3.200000047683716.

Port f2d of Ryu (the ryu crate 1.0.23) for the digits and lay them out by
the rules Double uses (ECMAScript's Number::toString). NaN, the infinities
and the zeros print as before.

Checked against the ryu crate on 3181 floats (powers of two and ten with
neighbours, subnormals, exact ties, random bits): the digits, that the text
reads back as the same float, and that Double prints the same decimal the
same way. Snapshots that pinned the old output are updated.

77 of 78 new or added lines in 2 files covered. (98.72%)

16837 of 18813 relevant lines covered (89.5%)

360014.52 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
89.29
2.4% float/methods.mbt
Jobs
ID Job ID Ran Files Coverage
1 7059.1 14 Oct 2026 10:09AM UTC 439
89.5
GitHub Action Run
Source Files on build 7059
  • Tree
  • List 439
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b6c71324 on github
  • Prev Build on main (#7057)
  • Next Build on main (#7063)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc