Created
September 5, 2022 16:03
-
-
Save AhmedMenaim/522e4a0074e0b656655663a20d4e9e40 to your computer and use it in GitHub Desktop.
Menaim Academy - Swift Course - Data Types Conversions & Comments
This file contains 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
import Foundation | |
// MARK: - Comments | |
// var greeting = "Hello, playground" // Command / | |
/* | |
ahmed | |
menaim | |
academy | |
*/ | |
// MARK: - Conversions | |
var floatNumber = 5.6 // Why Double? | |
var intNumber = 2 | |
//print(Int(floatNumber) + intNumber) | |
print(floatNumber + Double(intNumber)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment