The Gateway to Computer Science Excellence
0 votes
235 views

Which of the following decimal numbers can be exactly represented in binary notation with a finite number of bits ?

  1. $0.1$
  2. $0.2$
  3. $0.4$
  4. $0.5$
  5. All the above
in Digital Logic by Veteran (424k points)
edited by | 235 views
+1
0.5

1 Answer

+2 votes
Binary representation of $0.5$, $0.1_2$ is the only fraction that is terminating in the given options. So it can be represented exactly.

All other options have non-terminating fraction part and cannot be represented exactly with finite number of bits.
by Boss (11.4k points)
edited by
+2
IEEE754 is irrelevant to this question :)
0
@Arjun Sir you mean to say in any representation we cannot exactly represent these fractions.

Edited :)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,647 questions
56,492 answers
195,439 comments
100,708 users