amrutansu garanaik
Broken In
I am given the task to find the value of PI up to decimal poins 'x'
awhere 'x' is input through keyboard.
If I use c++ and use setprecision() defined in iomanip.h, I am getting
rounded off results. I need accurate truncated value. If I use c, I
can not use a variable in precision field in printf() . What can I do?
e.g. PI=3.1415(9265)
I am getting 3.1416
Please help
awhere 'x' is input through keyboard.
If I use c++ and use setprecision() defined in iomanip.h, I am getting
rounded off results. I need accurate truncated value. If I use c, I
can not use a variable in precision field in printf() . What can I do?
e.g. PI=3.1415(9265)
I am getting 3.1416
Please help