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

Nic30 / hwtBuildsystem / 262f1695-e704-4c23-b8b0-4356a8957194

15 Jul 2025 09:45AM UTC coverage: 55.574% (-0.1%) from 55.72%
262f1695-e704-4c23-b8b0-4356a8957194

push

circleci

Nic30
feat(stringUtils): formatNumberWidthScale

203 of 542 branches covered (37.45%)

Branch coverage included in aggregate %.

0 of 11 new or added lines in 1 file covered. (0.0%)

12 existing lines in 2 files now uncovered.

1482 of 2490 relevant lines covered (59.52%)

0.6 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/hwtBuildsystem/stringUtils.py
NEW
1
def formatNumberWidthScale(v: int, numFormat="3.1"):
×
NEW
2
    scale = ""
×
NEW
3
    highScales = ["K", "M", "G", "T"]
×
NEW
4
    for s in highScales:
×
NEW
5
        if v > 1000:
×
NEW
6
            v /= 1000
×
NEW
7
            scale = s
×
8

NEW
9
    if isinstance(v, int):
×
NEW
10
        return f"{v}"
×
11
    else:
NEW
12
        _format = f"{{v:{numFormat}f}}{{scale:s}}"
×
NEW
13
        return _format.format(v=v, scale=scale)
×
14
        # f"{v:3.1f}{scale:s}"
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