I am Converting a string value to single and then to double.
For 1371818.28 i am getting Answer 137181.28125
For 1371818.29 i am getting Answer 137181.296875
Below is the code i am using.
string a="137181.28" ;
double r=Convert.ToSin gle(a);
Response.Write( r);
Why I am getting this greater value.
For 1371818.28 i am getting Answer 137181.28125
For 1371818.29 i am getting Answer 137181.296875
Below is the code i am using.
string a="137181.28" ;
double r=Convert.ToSin gle(a);
Response.Write( r);
Why I am getting this greater value.
Comment