News for hackers. Stuff that matters.
Re:Kotlin Money by ebiester on Tuesday October 08, 2024 @10:21AM (#41777685)
Yes, and rounding currency is just something that is always handled, as is the number of places that you take a currency out to - for example, gas is often priced at thousandths of a dollar rather than hundreds but presented to the customer in hundredths at the end. Or Yen in most cases does not have a decimal point, except that the places where you round or don't round can be consequential in large enough quantities.

These are largely things that can be handled by a library, but if it's in the language you best not get it wrong because it's so much harder to change!

Re:Kotlin Money by benatkin on Tuesday October 08, 2024 @01:13PM (#41779517)
From my perspective those are tenths of a cent. Stripe has integer values for cents.

Am I wrong here?

https://stackoverflow.com/questions/35326710/stripe-currency...