+ 3

How to put √ in java

I need √ in my code

3rd Apr 2017, 12:33 PM
00elzhas00
00elzhas00 - avatar
9 Respostas
+ 15
Math.sqrt(9); //outputs 3😊
3rd Apr 2017, 12:38 PM
Dev
Dev - avatar
+ 7
\u221A is the Unicode character for 'sqrt' symbol. Use it in your Java program. And, I don't think it works in code playground. So, try it in your computer.
3rd Apr 2017, 1:18 PM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 5
sqrt();
3rd Apr 2017, 1:52 PM
Aaron Sarkissian
Aaron Sarkissian - avatar
+ 5
sadly does not work on sololearn
3rd Apr 2017, 2:07 PM
Heng Jun Xi
Heng Jun Xi - avatar
+ 5
you are asking about the character '√' right?
3rd Apr 2017, 2:08 PM
Heng Jun Xi
Heng Jun Xi - avatar
+ 3
3rd Apr 2017, 7:38 PM
Aleksandr Nikitin
Aleksandr Nikitin - avatar
+ 1
Sqrt does not work
3rd Apr 2017, 1:54 PM
00elzhas00
00elzhas00 - avatar
+ 1
thank you all
3rd Apr 2017, 2:10 PM
00elzhas00
00elzhas00 - avatar
+ 1
Sqrt() is a static method of the Math class (Java.lang.Math.sqrt), so u must implement it this way: Math.sqrt(number)
5th Apr 2017, 2:48 PM
Samuel A. Daniels
Samuel A. Daniels - avatar