This video is about conversion of decimal number to binary number program in Java.
Link for Decimal to binary number conversion 👇 • Number System Conversion |Binary |Decimal|...
#decimaltobinaryprograminjava
#javaprogramtoconvertdecimaltobinary
Decimal number is most familiar number system to the general public. It is base 10 which has only 10 symbols − 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9. Whereas Binary number is most familiar number system to the digital systems, networking, and computer professionals. It is base 2 which has only 2 symbols: 0 and 1, these digits can be represented by off and on respectively.
Conversion from Decimal to Binary number system
There are various direct or indirect methods to convert a decimal number into binary number. In an indirect method, you need to convert a decimal number into other number system (e.g., octal or hexadecimal), then you can convert into binary number by converting each digit into binary number.
Example − Convert decimal number 125 into binary number.
First convert it into octal or hexadecimal number,
= (125)10
= (1x82+7x81+5x80)10
or (7x161+13x160)10
Because base of octal and hexadecimal are 8 and 16 respectively.
= (175)8
or (7D)16
Then convert it into binary number by converting each digit.
= (001 111 101)2
or (0111 1101)2
= (01111101)2
On this page of the site you can watch the video online Decimal to binary number program in Java with a duration of hours minute second in good quality, which was uploaded by the user Knowledge Circle 14 February 2021, share the link with friends and acquaintances, this video has already been watched 1,053 times on youtube and it was liked by 52 viewers. Enjoy your viewing!