Link to home
Start Free TrialLog in
Avatar of panaz
panaz

asked on

Give an example of a number whose decimal representation is finite (i.e., it has only a finite number of nonzero digits) but whose binary representation is not.

Give an example of a number whose decimal representation is finite (i.e., it has only a finite number of nonzero digits) but whose binary representation is not.
Avatar of ozo
ozo
Flag of United States of America image

0.1
Avatar of panaz
panaz

ASKER

what is the binary rep of 0.1?
Avatar of panaz

ASKER

is it possible to represent floating point numbers in buinary?
ASKER CERTIFIED SOLUTION
Avatar of RishadanPort
RishadanPort

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of panaz

ASKER

d
yes, you can represent fp numbers in binary, as them really are stored as binary.
The concrete example depends on programming language.