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: Double and float
Converting double to integer in Swift
Submitted by
obraztsov
on Tue, 11/10/2015 - 16:46
Forums:
Swift: Double and float
let
pi =
3.1415926535
let
intValue =
Int
(pi)
//intValue is 3
Log in
to post comments