Hello everyone,
I need to be able to limit(or control) precision of double datatype to 10 decimal places and not more or less. How would i do it? I can also use float or any other datatype, the issue is making precision only 10 decimal places:
0.0123456789
and this is not output formatting.... I am working with a program that does a scientific computation, so precision is important in calculations, not for the display.
Thank you in advance.
I need to be able to limit(or control) precision of double datatype to 10 decimal places and not more or less. How would i do it? I can also use float or any other datatype, the issue is making precision only 10 decimal places:
0.0123456789
and this is not output formatting.... I am working with a program that does a scientific computation, so precision is important in calculations, not for the display.
Thank you in advance.