Skip to content

Fix price formatting for display of model total cost#42

Open
reddog wants to merge 1 commit into
simonw:mainfrom
reddog:fix-usage-cost-with-cents
Open

Fix price formatting for display of model total cost#42
reddog wants to merge 1 commit into
simonw:mainfrom
reddog:fix-usage-cost-with-cents

Conversation

@reddog
Copy link
Copy Markdown

@reddog reddog commented Dec 19, 2025

Fix display of model total cost to show whole dollar value or with two decimal place cent value.

Currently, if calculated model cost is:

  • a whole dollar value, it is showed without decimals, e.g. $60
  • a decimal cent value with non-zero penny value, it is showed as two decimal places, e.g. $3.25
  • a decimal cent value with zero penny value, it is showed incorrectly as one decimal place, e.g. $6.7

This fix correctly displays values either as whole dollars or with two decimal places.

image

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