G
Guest
Hi,
I have written a simple code as follorws:
//************* BEGIN CODE ******************
double a;
a= 106.3 - 137.3
//************* END CODE ******************
I am expecting a value of -31.
But, I get a value of -31.000000000000014
Did I miss out something here? Due to system design, we do not wish to use
the 'round' command.
Can anyone enlighten me whether this is a bug?
Thanks
rgds,
I have written a simple code as follorws:
//************* BEGIN CODE ******************
double a;
a= 106.3 - 137.3
//************* END CODE ******************
I am expecting a value of -31.
But, I get a value of -31.000000000000014
Did I miss out something here? Due to system design, we do not wish to use
the 'round' command.
Can anyone enlighten me whether this is a bug?
Thanks
rgds,