News for hackers. Stuff that matters.
Re:Understanding Ethereum Smart Contracts by Kranar on Wednesday November 29, 2017 @05:21PM (#15811445)
Yes, we are on the same page. BigDecimal is appropriate for representing money, fixed point arithmetic is not. I simply argue that in situations where you care about performance, you can actually drop BigDecimal and use floating point decimal or even floating point binary and get perfectly good results that have exact precision so long as you model your domain.
Re:Understanding Ethereum Smart Contracts by Groxx on Wednesday November 29, 2017 @07:07PM (#15812138)
Yeah, if you know your domain and know you're creating only an acceptable amount of error, by all means float it up. Floats are easy to use and predictable nearly everywhere, since nearly everyone follows the same spec.

Generally though, I think people don't quite do due-diligence here. And/or the domain changes enough that numbers get large enough to invalidate the earlier analysis. There are obviously exceptions to this though, and for them, they know what they're doing and why they're doing it and it's all good.