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


Please Help Members By Posting Answers For Below Questions

What is dynamic member lookup swift?

468


How do I add a bridging header in swift?

409


Is swift coding easy?

448


How to make a method or variable generics in swift?

457


What is use of enum in swift?

451






What is floating point number in swift?

439


What is the use of double question mark “??” In swift?

514


How to declare an empty dictionary in swift?

543


What are the different floating point numbers in swift?

467


Explain some design patterns which we normally use during the app development.

479


What is string in swift?

446


What is interface in swift?

489


What are the control transfer statements used in swift?

476


How to post an http request with a json body in swift?

499


What is static function in swift?

447