01-20-2009, 12:52 PM
I want to subtract 25.40 from 25.35 and the result should be -0.05 in all the 3 variable are of double type. In QM it shows answer in exponetial form ie 4.99999999999972E-02. I want just simply -0.05 as result to be stored in C variable as it is to be compared with D for further processing. I am using below code.
double a= 25.40
double b= 25.35
double c=a-b
out c
double a= 25.40
double b= 25.35
double c=a-b
out c