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 lazy stored properties is and when it is useful?

504


What is forced unwrapping?

543


What are the most important features of swift?

468


What are jsonencoder and jsondecoder?

488


How to add an element into an array?

482






What is argument label in swift?

447


What is the difference between closure and function in swift?

451


What is nested function in swift?

505


Explain the difference between let and var in swift programming?

475


How can you declare a variable in swift?

497


What is a function in swift?

483


What is instance variable in swift?

449


What do you do when you realize that your app is prone to crashing?

502


What is an in-out parameter in swift?

515


What is forced unwrapping? Why is it potentially unsafe?

492