Skip to main content
Code sample in Swift, C# and Java
Main menu
About
History
Swift
C#
Java
Python
You are here
Home
»
Forums
»
Java
»
Java: Work with simple types
»
Java: Work with numbers
»
Java: Mathematical operations
Square root in Java
Submitted by
obraztsov
on Thu, 11/24/2016 - 17:47
Forums:
Java: Mathematical operations
int
number
= 100;
Double
result
= Math.
sqrt
(
number
);
//result is 10.0
Log in
to post comments