Using double or decimal
Hi Everyone, from my understanding, the 'decimal' data type and the 'double' data type are somewhat the same thing. What are the limits of both data types and when should those data types be used?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Santhakumar MunuswamyRank #128 · 17.3K reputationPosted Apr 14, 2015, 7:08 PM EDT
Refer this below link
http://net-informations.com/q/faq/float.html
Tom MohanRank #912 · 2.3K reputationPosted Apr 14, 2015, 7:59 PM EDT
For money, always decimal. It's why it was created.
If numbers must add up correctly or balance, use decimal. This includes any financial storage or calculations, scores, or other numbers that people might do by hand.
If the exact value of numbers is not important, use double for speed. This includes graphics, physics or other physical sciences computations where there is already a "number of significant digits".