Compare double till precision 2
- by Ram
Hi,
I want to compare two double values till the second digit from decimal point. I am using following statement but I think it is not working properly.
dbl1.ToString("g2", CultureInfo.InvariantCulture).Equals( dbl2.ToString("g2", CultureInfo.InvariantCulture))
Am I missing anything here?