5 ms·
> If speed is an issue, store it in integer types representing the smallest unit in the currency, e.g. pennies More typically, mills[1] (tenth of a cent). [1]
by stock_toaster 7y ago
> If speed is an issue, store it in integer types representing the smallest unit in the currency, e.g. pennies
More typically, mills[1] (tenth of a cent).
[1]: https://en.m.wikipedia.org/wiki/Mill_(currency) https://en.m.wikipedia.org/wiki/Mill_(currency)
- deleted 7y ago[deleted]
- DonHopkins 7y agoAmazon's EC2 hourly prices are rounded to mils ($0.011/hour). https://aws.amazon.com/emr/pricing/ https://aws.amazon.com/emr/pricing/ Azure has some hourly prices with ten-thousandths of a cent ($0.0102/hour): https://azure.microsoft.com/en-ca/pricing/details/virtual-machines/windows/ https://azure.microsoft.com/en-ca/pricing/details/virtual-ma... Microsoft should use gas station 9/10 pricing conventions to just barely undercut Amazon's lowest price $0.011 with $0.0109. https://www.marketplace.org/2018/10/11/why-do-gas-prices-end-910-cent/ https://www.marketplace.org/2018/10/11/why-do-gas-prices-end... >“They found out that if you priced your gas 1/10 of a cent below a break point, let’s say 40 cents a gallon, ‘.399’ just looked to the public like 39 cents…”
- TeMPOraL 7y agoTarsnap goes as low as counting attodollars. Yes, that's 10^-18 dollars, judging by the precision with which individual line items and total account funds are reported. Storage price is 250 picodollars per byte-month.
- Cyph0n 7y agoIf it’s not possible to charge such amounts, what exactly is the point of the accuracy?
- TeMPOraL 7y agoTarsnap is prepaid.
- DonHopkins 7y ago"Tarsnap's author is a geek." ;) https://www.tarsnap.com/picoUSD-why.html https://www.tarsnap.com/picoUSD-why.html
- TeMPOraL 7y ago"when it internally converts storage prices from picodollars per month to attodollars per day, it rounds the prices down to benefit the customer." A gentleman and a scholar.
- DonHopkins 7y agoThey're usually charging you for a shitload of them!