Question-14: Which of the following is true with regards to Floating point number?
- Int and Floating-point number are same in Python.
- Int are stored as character stream and Floating-point number are stored as bit
- Int and Float number are stored differently in computer memory.
- Float number can not be converted in string
- Int number cannot be converted in string
Answer: C
Exp:
Integers
- There are two different type of numbers in computer world.
- Integers i.e. 100, 1, 7 etc.
- Floating-point numbers i.e. 9.9, 2.1, 2.1473743 etc.
- Both these types of numbers are stored very differently inside computer memory.
- They also very based what is maximum and minimum value a computer can handle.