|
|
|
|
|
by davismwfl
1808 days ago
|
|
https://stackoverflow.com/questions/3730019/why-not-use-doub... Personally, as a general rule I use integer's and convert for display only (as mentioned in the above SO post). This removes the accuracy issue and works in every programming language that is in common use today (at least that I know of). I even do this in Postgres (and other DB's) which keeps everything consistent and removes the chance a driver between the DB and client jacks up the decimal conversion. |
|
If your language and your database both have decimal, why not use them?