News for hackers. Stuff that matters.
Re:Kotlin Money by slt2021 on Tuesday October 08, 2024 @12:10PM (#41778930)
I dont understand the need for this.

I always has used integer data type and counted cents. Why need this?

Re:Kotlin Money by proper_elb on Tuesday October 08, 2024 @02:09PM (#41780108)
More precision and/or more safety. Will depend on the domain/audience/... the software is being written for.
Re:Kotlin Money by eriksencosta on Tuesday October 08, 2024 @02:52PM (#41780513)
You don't need if your solution fits your use case. The library is an implementation of Fowler's Money pattern: https://martinfowler.com/eaaCatalog/money.html