I need help with the floating point numbers. Actually, I want all the calculations done involving floats to be done using 2/3 digit precision. For Example... if I enter
a=20.20 and b=30.30 and then say c=b-a
internally a=20.200001 and b=30.299999 and accordingly c is not exactly equal to 10.10.
I need a way out with this.
The answers can be corrected in PRINTF using the format specifier but I dont Use Printf in my programs (low level).
Please help me out with this.
My Email ID: email@example.com