Skip to content

web: page figures use goFixed - #5

Merged
midagedev merged 2 commits into
feed-cache-120from
gofixed-fmt
Oct 15, 2026
Merged

midagedev merged 2 commits into
feed-cache-120from
gofixed-fmt

Conversation

@midagedev

Copy link
Copy Markdown
Owner

The hub's shared figure printer (fmt) used toFixed. The card's formatRate uses goFixed, which rounds an exact half to even. fmt now calls goFixed: an integer at or above 100, one decimal below, and ? when the figure was not measured.

Stacked on #1. One commit.

node --test in web/: 59 passed.

The printer moves out of the run route so a page can use it without
importing that route.
fmt() is the printer the hub shares with the card's formatRate. It still
called toFixed, which prints the other way on an exact half. goFixed is
the tie rule formatRate already uses.
@midagedev
midagedev merged commit 24f7589 into feed-cache-120 Oct 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant