Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Converting from base-2 to base-16

  1. Aug 30, 2014 #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)...
     
  2. jcsd
  3. Aug 30, 2014 #2

    Mark44

    Staff: Mentor

    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.
     
  4. Aug 30, 2014 #3
    next number is 9?
     
  5. Aug 30, 2014 #4
  6. Aug 30, 2014 #5

    SteamKing

    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper
    2015 Award

    0.1 - base 2 would be 1/2 = 0.5

    Is 0.0101100101 - base 2 greater than or less than 0.1 - base 2?
     
  7. Aug 30, 2014 #6
    i meant 0.59416

    0.01011001012 = 0.59416 ?
     
    Last edited: Aug 30, 2014
  8. Aug 30, 2014 #7

    Mark44

    Staff: Mentor

    Looks good.
     
  9. Aug 30, 2014 #8
    Thanks!
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?
Draft saved Draft deleted
Similar Discussions: Converting from base-2 to base-16
  1. What is 1/7 in base 2? (Replies: 8)

  2. Base 2 trouble (Replies: 11)

Loading...