Converting from base-2 to base-16

  • Thread starter Thread starter johann1301
  • Start date Start date
AI Thread Summary
To convert a binary fraction like 0.01011001012 to base-16, group the binary digits into sets of four starting from the binary point. Each group corresponds to a hex digit, with the first four digits representing sixteenths and subsequent groups representing smaller fractions. For example, the first group 0101 translates to 5 in hex. The conversion confirms that 0.01011001012 in binary equals 0.59416 in hexadecimal. This method simplifies the process of converting binary fractions to hexadecimal.
johann1301
Messages
216
Reaction score
1
How does one convert a number like 0.01011001012 to a base-16 system?

I know how to do for ex. 100011102, but the comma (or period confuses me)...
 
Mathematics news on Phys.org
johann1301 said:
How does one convert a number like 0.01011001012 to a base-16 system?

I know how to do for ex. 100011102, but the comma (or period confuses me)...
Conversion between binary and hex integers is pretty easy - each group of four binary digits, starting from the left, can be written as a single hex digit.

Converting binary fractions is almost as easy. Starting at the "binary" point, each group of four binary digits represents a power of 1/16. The first four digits to the right of the point are 0101, or 5 in hex, and continue in the same pattern. The first hex digit represents sixteenths, the next represents 256th-s (1/(162), and so on.
 
  • Like
Likes 1 person
next number is 9?
 
0.594?
 
0.1 - base 2 would be 1/2 = 0.5

Is 0.0101100101 - base 2 greater than or less than 0.1 - base 2?
 
i meant 0.59416

0.01011001012 = 0.59416 ?
 
Last edited:
johann1301 said:
i meant 0.59416

0.01011001012 = 0.59416 ?
Looks good.
 
Thanks!
 

Similar threads

Back
Top