Machine-translated by Google. Questions are authored in English.
Top

Discussion

Floating-point numbers are used to represent :

  • A.Only for small numbers or very large numbers
  • B.Only large negative number
  • C.Only for positive numbers
  • D.Only for negative numbers within computers

Answer: A

Floating-point numbers are used to represent very small or very large numbers (the first option).

A floating-point number stores a sign, a mantissa and an exponent, like scientific notation. The exponent lets the same word length represent values as small as about \(10^{-38}\) and as large as about \(10^{38}\) in single precision, far beyond the range of integers of the same size. That range is the reason for the format.

Floating-point numbers can be positive or negative, since the sign bit handles both, so the options limiting them to positive numbers, negative numbers or large negative numbers are wrong.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.