H
harry
I have a double array & 2 double var's -
double subTotals[10][10];
double x = 9670000.0;
double y = 180000.0;
Doing something like -
subTotals[1][1] = x + y;
gives subTotals[1][1] = 9850000.0 which is fine
but when
double x = 9850000.0 ;
double y = 270000.0;
subTotals[1][1] = 1.012E7
I need to extract this value (which is displayed on a web page) but the
value 1.012E7 comes out - I guess this is due to the exponent & mantissa of
floating point numbers - what not really sure how to handle this!
Do I when using the value have to pass the value through some function to
retrieve the full value i.e 10120000 or what?
many thanks
harry
double subTotals[10][10];
double x = 9670000.0;
double y = 180000.0;
Doing something like -
subTotals[1][1] = x + y;
gives subTotals[1][1] = 9850000.0 which is fine
but when
double x = 9850000.0 ;
double y = 270000.0;
subTotals[1][1] = 1.012E7
I need to extract this value (which is displayed on a web page) but the
value 1.012E7 comes out - I guess this is due to the exponent & mantissa of
floating point numbers - what not really sure how to handle this!
Do I when using the value have to pass the value through some function to
retrieve the full value i.e 10120000 or what?
many thanks
harry