News for hackers. Stuff that matters.
Re:0.30000000000000004 by stock_toaster on Monday December 02, 2019 @05:18PM (#21687665)
> 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)

Re:0.30000000000000004 by DonHopkins on Monday December 02, 2019 @05:39PM (#21687864)
Amazon's EC2 hourly prices are rounded to mils ($0.011/hour).

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-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...

>“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…”

Re:0.30000000000000004 by TeMPOraL on Monday December 02, 2019 @06:01PM (#21688016)
Tarsnap 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.
Re:0.30000000000000004 by Cyph0n on Monday December 02, 2019 @06:09PM (#21688089)
If it’s not possible to charge such amounts, what exactly is the point of the accuracy?
Re:0.30000000000000004 by DonHopkins on Monday December 02, 2019 @06:13PM (#21688134)
They're usually charging you for a shitload of them!
Re:0.30000000000000004 by TeMPOraL on Monday December 02, 2019 @06:13PM (#21688130)
Tarsnap is prepaid.
Re:0.30000000000000004 by DonHopkins on Monday December 02, 2019 @06:15PM (#21688143)
"Tarsnap's author is a geek." ;)

https://www.tarsnap.com/picoUSD-why.html

Re:0.30000000000000004 by TeMPOraL on Monday December 02, 2019 @06:19PM (#21688181)
"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.