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?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Tom MohanPosted Apr 14, 2015, 11:59 PM
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".
Santhakumar MunuswamyPosted Apr 14, 2015, 11:08 PM
Refer this below link
http://net-informations.com/q/faq/float.html