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

moonbitlang / core / 6879
89%

Build:
DEFAULT BRANCH: main
Ran 28 Sep 2026 06:32AM UTC
Jobs 1
Files 451
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

28 Sep 2026 06:29AM UTC coverage: 89.429% (+0.004%) from 89.425%
6879

push

github

bobzhang
fix(float): correct Float::round for signed zero, the half boundary, and large integers

On native, wasm and wasm-gc `Float::round` was `floor(x + 0.5)`, the same
naive formula #3939 replaced for `Double::round`:

- odd integers of magnitude in [2^23, 2^24) moved by one, because
  `x + 0.5` is a tie that rounds to even (8388609 -> 8388610);
- nextDown(0.5) rounded to 1, because `x + 0.5` rounds up to 1.0;
- inputs in [-0.5, 0), and -0 itself, rounded to +0 instead of -0.

Port the guarded logic of `Double::round` so every backend agrees with js
(`Math.round`): return the input for zero, NaN and |x| >= 2^23, return +0
for 0 < x < 0.5 and -0 for -0.5 <= x < 0, and use `floor(x + 0.5)`
otherwise. The regression test now runs on js as well.

Signed-off-by: Codex CLI <codex@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

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

16657 of 18626 relevant lines covered (89.43%)

332898.82 hits per line

Jobs
ID Job ID Ran Files Coverage
1 6879.1 28 Sep 2026 06:32AM UTC 451
89.43
GitHub Action Run
Source Files on build 6879
  • Tree
  • List 451
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • b8a46054 on github
  • Prev Build on main (#6876)
  • Next Build on main (#6882)
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