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
Decimal logarithm in Java
Submitted by
obraztsov
on Thu, 11/24/2016 - 17:46
Forums:
Java: Mathematical operations
int
number
= 1000;
double
result
= Math.
log10
(
number
);
//result is 3.0
Log in
to post comments