mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
- Use Math.log10 instead of toString().length to count integer digits — toString() on a float like 4036.29 has length 7, which incorrectly bucketed thousands-range values into millions - Fix exponent formula for 3n-digit numbers (e.g. 100000 gave exponent=6→M instead of 3→k) - Apply precision param d below 1000 (was hardcoded 2); default to 2 - Add formatNumber.test.ts Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>