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.
0.1
ASKER
what is the binary rep of 0.1?
ASKER
is it possible to represent floating point numbers in buinary?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
d
yes, you can represent fp numbers in binary, as them really are stored as binary.
The concrete example depends on programming language.
The concrete example depends on programming language.