CBSE Class 12 Computer Science Question 55 of 105

Python Revision Tour — Question 9

Back to all questions
9
Question

Question 9

How are floating constants represented in Python? Give examples to support your answer.

Answer

Floating constants are represented in Python in two forms — Fractional Form and Exponent form. Examples:

  1. Fractional Form — 2.0, 17.5, -13.0, -0.00625
  2. Exponent form — 152E05, 1.52E07, 0.152E08, -0.172E-3