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: Integer
Conversion Int from a String in Swift
Submitted by
obraztsov
on Tue, 11/10/2015 - 17:07
Forums:
Swift: Integer
let
strNumber =
"42"
let
number =
Int
(strNumber)!
Log in
to post comments