3 ms·
You are getting a lot of down-votes, but you are correct, and I gave you some upvotes, at least one. If the application is doing financial modeling and estimat
by bxparks 6y ago
You are getting a lot of down-votes, but you are correct, and I gave you some upvotes, at least one.
If the application is doing financial modeling and estimations, where only 1-3 decimal place of accuracy is needed, then floating point is the right choice. It greatly simplifies the app.
If the application is doing accounting, payments and billing, where people expect accuracy to the penny or more (e.g. to 1/10000 of a penny), then it needs to use a Decimal type.