Java sqrt not working | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Resposta
+ 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