G
Gary Wessle
Hi
I am expecting to get "0" (that is zero) printed but getting
"-2.7311e-14" almost zero. not nice for printing.
double a = \*...code calculations ...*\
some times a becomes a real, integer or natural number and I like it
to print in nice human read format.
cout << setw(20) << left << setprecision(5) << a;
thank you
I am expecting to get "0" (that is zero) printed but getting
"-2.7311e-14" almost zero. not nice for printing.
double a = \*...code calculations ...*\
some times a becomes a real, integer or natural number and I like it
to print in nice human read format.
cout << setw(20) << left << setprecision(5) << a;
thank you