decimal vs double! - Which one should I use and when?

Posted by Soni Ali on Stack Overflow See other posts from Stack Overflow or by Soni Ali
Published on 2009-07-22T14:37:54Z Indexed on 2010/05/07 10:28 UTC
Read the original article Hit count: 380

Filed under:
|
|
|

I keep seeing poeple using doubles in C#. I know I read somewhere that double sometimes loose precision. My question is when should a use a double and when should I use a decimal type? which type is suitable for money computations? (ie. greater than $100 million)

© Stack Overflow or respective owner

Related posts about decimal

Related posts about double