News for hackers. Stuff that matters.
Re:Beware of Fast-Math by klysm on Saturday May 31, 2025 @12:16PM (#44145263)
Convert to money as last as possible
Re:Beware of Fast-Math by roryirvine on Saturday May 31, 2025 @01:32PM (#44145773)
This is surely the right answer: simply count the number of tokens used, and do the billing reconciliation as a separate step.

As an added benefit, it makes it much easier to deal with price changes.