I'm studying Digital Logic and Design. And in the first chapter, there's all this information about various binary codes. I did some searching on youtube and found this awesome video - https://www.youtube.com/watch?v=lKTsv6iVxV4&t=5s.

Now, my question is, If 2's complement is the best way to represent numbers in computers, what's the purpose of BCD?

  • $\begingroup$ Its importance is mainly historical. $\endgroup$ – Yuval Filmus Jun 7 '18 at 17:02
  • $\begingroup$ So, BCD is not used in any system? And numbers are only represented by 2's complement form? I'm confused because in the book that i'm studying (Digital Design by MM Mano), the information on BCD is given after the information on 2's complement representation. $\endgroup$ – Sanskar Jun 7 '18 at 17:11
  • $\begingroup$ I'm not an expert, but I believe BCD is only used in legacy systems. They teach you BCD since it's in the textbook. $\endgroup$ – Yuval Filmus Jun 7 '18 at 17:29
  • $\begingroup$ Okay, i get it. Thanks for responding. I can't study something when i don't know why am i studying it. I have a context now. :) $\endgroup$ – Sanskar Jun 7 '18 at 17:38
  • $\begingroup$ Look for decimal floating point, quite interesting and I believe implemented in current mainframes. For operations with integers, base 10^9 or 10^18 can be useful. $\endgroup$ – gnasher729 Jun 7 '18 at 17:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.