For large numbers the number of precision places is not the same as the input given. Why? This is the link to my code: https://ide.codingblocks.com/s/125731
Error in code to compute square root
@shruthi019 hey shruthi rao you have to use set precision method to set the precision because cout statement is not support precision properly
go through this
http://www.cplusplus.com/reference/iomanip/setprecision/
HI. I tried using the set precision feature and updated the code. However for the test case I am considering the precision places are still 3 only regardless of the input 6 that Iām providing.
Test case is
n=36278 and p=6
Check it out:
@shruthi019 for the further doubt please do tag this doubt is resolved on the whatsapp by sanjeet boora which is our mentor
thankyou
1 Like
Thank you so much bhaiya !
1 Like