I am looking for square root functions (to use in java) that can give square roots upto atleast to 5-6 decimal places accurately. If there is a way to control accuracy of java.lang.Math.sqrt(double) or any external math library, please mention it.
What problem are you trying to solve? I believe java.lang.Math’s sqrt is supposed to be accurate to the full double width. Do you need more than this?