Converting binary to Decimal
Afficher commentaires plus anciens
I need to write a program that converts a 4-Bit Binary number to a decimal and reverse. How can i write a function that converts 4-bit binary to decimal and decimal to binary? What way can i check that the input is actually binary?
Réponses (2)
Walter Roberson
le 13 Avr 2011
0 votes
How exactly is the binary number represented?
Michael Finch
le 13 Avr 2011
0 votes
3 commentaires
John D'Errico
le 13 Avr 2011
So, you know what you need to do. It is time to start writing.
Michael Finch
le 13 Avr 2011
Walter Roberson
le 14 Avr 2011
You wrote, "[...] that checks the number [...]"
*What* number? How *exactly* is that number represented?
Catégories
En savoir plus sur Logical dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!