I m using decimal type (.net), and I want to see if two numbers are equal. But I only want to be accurate to 10 decimal places. For example take these three numbers. I want them all to be equal.
0.1123456789
0.11234567891
0.11234567899
The 10 decimal limit is coming from my database, so I have to assume that the first number was already rounded, and therefore I can t simply round the others because the last one will round up.
I really just want to truncate the to 10 decimal places, but can t see how to do this either.