Ch 3: Intro to Classes, Objects, Methods and Functions Flashcards
What are the two Swift types for floating point?
==> P. 34
Two floating point types:
Float
Double
What is the minimum number of significant digits in a Float type?
==> P. 34
Minimum number of significant digits in a Float type:
6
What is the default floating point type used by Swift?
==> P. 34
Default floating point type used by Swift:
Double
What is the minimum number of significant digits in a Double type?
==> P. 34
Minimum number of significant digits in a Double type:
15
What class does Swift provide to handle money values precisely?
==> P. 34
NSDecimalNumber
In what framework is the NSDecimalNumber class found?
==> P. 34
Foundation
Provide an example of the format of a class declaration statement.
==> P. 35 and on
public class Account { public var name : String = "" ...