Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
crabmusket
on April 25, 2024
|
parent
|
context
|
favorite
| on:
No Abstractions: our API design principle
This isn't sufficient to represent
prices
which often include fractional amounts of cents in non-retail scenarios. Think of AWS server prices per hour.
krainboltgreene
on April 25, 2024
[–]
Funny, because that's exactly what Stripe does (
https://docs.stripe.com/billing/subscriptions/usage-based/pr...
)
crabmusket
on April 27, 2024
|
parent
[–]
But those are decimal values, not integers. I didn't mean that using cents as a unit was insufficient, I meant that using
integers
was.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: