mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-10-07 13:28:39 +08:00
formatMultiplier rounded any value >= 0.01 with toFixed(2), so a configured multiplier like 0.035 displayed as 0.04x in the /usage and /admin/usage cost tooltips. Format with up to 4 decimals and trim trailing zeros while keeping at least 2 decimals; display-only fix, billing amounts were already computed from the true multiplier.