Mention what is the Floating point numbers and what are the types of floating number in Swift?
Answer Posted / iosraj
Floating numbers are numbers with a fractional component, like 3.25169 and -238.21. Floating point types can represent a wider range of values than integer types. There are two signed floating point number
Double: It represents a 64 bit floating point number, it is used when floating point values must be very large
Float: It represents a 32 bit floating point number, it is used when floating point values does not need 64 bit precision
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What type of literals does swift language have?
What is “defer”?
What is argument label in swift?
What is data structure in swift?
Why do we need closure in swift?
Explain mvc structure.
What is plist in ios?
What is swiftnet?
What is floating point number in swift? What are the different floating point numbers in swift?
What is dynamic dispatch swift?
What is mvc in swift?
What is atomic swift?
What are classes in swift?
What are the advantages of using swift?
What is optional chaining?