Number System and Base Conversions - GeeksforGeeks
Number System and Base Conversions - GeeksforGeeks
___ FAX ✕
In the above, dn-1 to d0 is the integer part, then follows a radix point and
then d-1 to d-m is the fractional part.
Example: (10.25)10
Open In App
Contact Us about Our
Products
Showa Giken Industrial Co
The fractional part ends here as the result is now 0. Reading from top to
bottom gives 01.
Example: (1010.01)2
Example: (10.25)10
Octal equivalent = 12 (write the remainder, read from bottom to top). So,
the octal equivalent of the integer part 10 is 12.
The fractional part ends here as the result is now 0. So, the octal
equivalent of the fractional part 0.25 is 0.2.
Example: (12.2)8
Example: (10.25)10
Integer part:
Hexadecimal equivalent = A
Fractional part:
Example: (A.4)16
Open In App
For each digit in the hexadecimal number, find its corresponding 4-bit
binary equivalent and write them down sequentially.
Example: (3A)16
(3)16 = (0011)2
(A)16 = (1010)2
Start from the rightmost bit and divide the binary number into groups
of 4 bits each.
If the number of bits isn't a multiple of 4, pad the leftmost group with
leading zeros.
Each 4-bit binary group corresponds to a single hexadecimal digit.
Replace each 4-bit binary group with the corresponding hexadecimal
digit.
Example: (1111011011)2
Open In App
0011 1101 1011
| | |
3 D B
Starting from the rightmost bit, divide the binary number into groups of
3 bits.
If the number of bits is not a multiple of 3, add leading zeros to the
leftmost group.
Each 3-bit binary group corresponds to a single octal digit.
The binary-to-octal conversion for each 3-bit group is as follows:
0 000
1 001
2 010
3 011
4 100
5 101
Open In App
Octal Binary Equivalent
6 110
7 111
Replace each 3-bit binary group with the corresponding octal digit.
Example: (111101101)2
Example: (153)8
Open In App
Advertise with us Next Article
1's and 2's complement of a Binary
Number
K Kriti Kushwaha
129
Similar Reads
Number Systems
Electronic and digital systems use various number systems such as Decimal, Binary, Hexadecimal and
Octal, which are essential in computing. Binary (base-2) is the foundation of digital…
( ) ( )
9 min read
Given a binary number s represented as a string. The task is to return its 1's complement and 2's
complement in form of an array as [onesComplement, twosComplement].The 1's complement of a…
8 min read
Binary Coded Decimal (BCD) is a binary encoding system in which each decimal digit is represented
by a fixed number of binary bits, typically four. Instead of converting the entire decimal number into a…
6 min read
Error Detection Codes: The binary information is transferred from one location to another location
Open
through some communication medium. The In noise
external App can change bits from 1 to 0 or 0 to 1. Thi…
6 min read
Minimization Techniques
Combinational Circuits
Sequential Circuits
Conversion of Flip-Flop
Open In App
Corporate & Communications
Address:
A-143, 7th Floor, Sovereign Corporate
Tower, Sector- 136, Noida, Uttar
Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante
Apartment, Sector 137, Noida,
Gautam Buddh Nagar, Uttar Pradesh,
201305
Advertise with us
Company Languages
About Us Python
Legal Java
Privacy Policy C++
In Media PHP
Contact Us GoLang
Advertise with us SQL
GFG Corporate Solution R Language
Placement Training Program Android Tutorial
Tutorials Archive
Open In App