Created
February 5, 2015 07:30
-
-
Save macbaszii/4940144c3656050edc8d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let pi: Double = 3.14159 | |
let fpi: Float = 3.14159 | |
let x = Int(pi) // 3 | |
let dpi = Double(pi) | |
let dgf = CGFloat(pi) | |
let array = Array("abc") // array = ["a", "b", "c"] | |
let string = String(["a", "b", "c", "d"]) // string = "abcd" | |
let intConvert = String(44) // let's try String(37.5) | |
let floatConvert = "\(37.5)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment