Data Types
Overview
Data Type | Description |
---|---|
Whole numbers | |
Floating points | Decimal numbers |
Decimal numbers with higher precision | |
Characters and Text | |
True / False |
Saving = Persistence
JSON => JavaScript Object Notation
JSON Data Types
Bool
Integer & Floating-Point numbers
String
Array
Dictionary <String, Any>
Data: Encoded using Strings
Date: ???
Notes
Integers are precise numbers.
Double Formats are not as precise as Integers. They have a little bit of inaccuracy.
Swift will not allow implicitly calculating Integers and Doubles together for the sake of type safety. So we should choose one of the number formats.
Sources
Videos
Articles / Documents
Last updated