mirror of
https://github.com/AgentSeal/codeburn.git
synced 2026-05-17 03:56:45 +00:00
parent
6702d55345
commit
988398abfc
1 changed files with 2 additions and 1 deletions
|
|
@ -151,5 +151,6 @@ export function formatCost(costUSD: number): string {
|
|||
|
||||
if (cost >= 1) return `${symbol}${cost.toFixed(2)}`
|
||||
if (cost >= 0.01) return `${symbol}${cost.toFixed(3)}`
|
||||
return `${symbol}${cost.toFixed(4)}`
|
||||
if (cost >= 0.0001) return `${symbol}${cost.toFixed(4)}`
|
||||
return `${symbol}${cost.toFixed(2)}`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue