Skip to main content
Code sample in Swift, C# and Java
Main menu
About
History
Swift
C#
Java
Python
You are here
Home
»
Forums
»
Swift
»
Swift: Work with simple types
»
Swift: Work with numbers
»
Swift: Mathematical operations
Decimal logarithm in Swift
Submitted by
obraztsov
on Tue, 11/10/2015 - 17:26
Forums:
Swift: Mathematical operations
let
number =
1000.0
let
result = log10(number)
//result is 3.0
Log in
to post comments