# fix\(costs\): use the regional decimal mark in compact token counts \(\#483\) · lucenx/codexbar-plasma

[View on GitCafe](https://git.cafe/lucenx/codexbar-plasma/commit/b5e0580f5db7da397d2300bd223213caa9ebc34a)

Repository: [lucenx/codexbar-plasma](https://git.cafe/lucenx/codexbar-plasma)

Visibility: public

Requested revision: b5e0580f5db7da397d2300bd223213caa9ebc34a

Requested commit: b5e0580f5db7da397d2300bd223213caa9ebc34a

Commit: b5e0580f5db7da397d2300bd223213caa9ebc34a

Tree: 8e69375633d125f15bc0d6b8fd4a2bd5612a7834

Author: Simone

Committer: GitHub

## Message

```
fix(costs): use the regional decimal mark in compact token counts (#483)

Compact token counts were formatted with toFixed(), so a comma-decimal
locale showed "$1.234,50 · 1.5K tokens" on one line. tokenCountString
now takes the applet number format, and every display caller passes it.
```

## Parents

- [405a5272db0c3244314fcc56eab580f192065ffe](https://git.cafe/lucenx/codexbar-plasma/commit/405a5272db0c3244314fcc56eab580f192065ffe?format=markdown)

[Source at this commit](https://git.cafe/lucenx/codexbar-plasma/tree/b5e0580f5db7da397d2300bd223213caa9ebc34a?format=markdown)
