title: Double precision - MS visual C++ 2005 Vs Matlab
body: <p>I am using MS visual C++ 2005 for implementing some mathematical algorithms in C++. My C++ code takes 10K double data type input values with precision of 12 decimal places(For e.g. 866.333333333333) which are generated in Matlab. Then my code does some calculations and gives result which is damage value of a mechanical entity which ought to be the same as matlab output when same algorithm is run in it with same input values. </p>
  
  <p>My problem is that matlab gives 10k input values with precision of 12 decimal places but my c++ code makes them to 15 decimal places. That means 866.333333333333 from matlab would be used as 866.33333333333303 in C++. I know that this is what IEEE754 Floating point representation.
  But this very tiny little change at input does make measurable difference in the final result when i compare my C++ output with matlab output. I may sound weird but this is what may observation is. I wish i could share some code here but it is very confidential. I would really appreciate if anyone help me out to get through this.</p>
  
  <p>Thanks in advance...! </p>