+ 1

Java sqrt not working

I'm currently coding a calculator in java and when ever i use the sqrt button on the calculator it is not accurate, if i press sqrt of 9 it turns into 1.79243.... Any ideas?

14th Feb 2022, 11:58 AM
albard899
1 Answer
+ 1
albard899 Are you doing in Java or JavaScript? What do you mean by sqrt button? It seems it is JavaScript.
14th Feb 2022, 2:06 PM
A͢J
A͢J - avatar