Solved

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.

Posted on 2008-09-30
6
609 Views
Last Modified: 2013-11-13
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
Comment
Question by:panaz
6 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 22610102
0.1
0
 

Author Comment

by:panaz
ID: 22610134
what is the binary rep of 0.1?
0
 

Author Comment

by:panaz
ID: 22610150
is it possible to represent floating point numbers in buinary?
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 6

Accepted Solution

by:
RishadanPort earned 125 total points
ID: 22610173
0
 

Author Closing Comment

by:panaz
ID: 31501767
d
0
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 22610475
yes, you can represent fp numbers in binary, as them really are stored as binary.
The concrete example depends on programming language.
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
csv file 7 331
Scrum Planning 2 173
How does Google get such fast response times? 5 177
numbers ascending pyramid 101 196
What is Waterfall Model? Waterfall model is the classic Software Development Life Cycle method practiced in software development process. As the name "waterfall" describes, this development is flowing downwards steadily like waterfall, i.e., procee…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question