Results 1 to 4 of 4
Like Tree1Thanks
  • 1 Post By chiro

Math Help - Write the bit pattern for the decimal value

  1. #1
    Junior Member
    Joined
    Apr 2013
    From
    USA
    Posts
    69
    Thanks
    1

    Write the bit pattern for the decimal value

    Assuming a three-bit exponent field and a four-bit significand, write the bit pattern for the following decimal values:

    (a) -12.5 (b) 13.0 (c) 0.43 (d) 0.1015625

    Here are the answers I got for each:

    (a) 1 110 1010

    (b) 1 110 1010

    (c) 0 001 1011

    (d) 0 000 1101


    I don't know how to check if these are correct. Could someone help me please?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Joined
    Sep 2012
    From
    Australia
    Posts
    3,694
    Thanks
    618

    Re: Write the bit pattern for the decimal value

    Hey lamentofking.

    Are these IEEE values (or derivatives)? Do you have the definition of the floating point number as a function of the exponent, significand, and sign bit?
    Thanks from emakarov
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Junior Member
    Joined
    Apr 2013
    From
    USA
    Posts
    69
    Thanks
    1

    Re: Write the bit pattern for the decimal value

    Quote Originally Posted by chiro View Post
    Hey lamentofking.

    Are these IEEE values (or derivatives)? Do you have the definition of the floating point number as a function of the exponent, significand, and sign bit?
    I don't know how to tell. These problems come from the Computer Systems by Warford textbook. Any the problem is before IEEE is covered so I would say no. These are floating point numbers. The sign bit is the first number, the next three numbers are the exponent, and the significand is the last four numbers.
    Follow Math Help Forum on Facebook and Google+

  4. #4
    MHF Contributor
    Joined
    Sep 2012
    From
    Australia
    Posts
    3,694
    Thanks
    618

    Re: Write the bit pattern for the decimal value

    It sounds like it is a quasi-IEEE (in other words, not a standard float or double, but a representation that has the same form only with the number of bits different).

    Anyway, I can't really help you unless you have the formula to convert the representation to a decimal number (or a number in another base).

    The only other suggestion I have is to see if its a fixed point representation. Fixed point is just a way of storing a number with so many possibilities for the integer value and so many possibilities for the non-integer value. Based on what you have said about the structure of the number, I don't think its a fixed point representation.

    Take a look at this and see if it has a connection:

    IEEE floating point - Wikipedia, the free encyclopedia
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. pattern
    Posted in the Advanced Algebra Forum
    Replies: 5
    Last Post: February 8th 2010, 07:23 AM
  2. Help with pattern
    Posted in the Math Topics Forum
    Replies: 3
    Last Post: March 15th 2007, 04:33 PM
  3. Pattern
    Posted in the Algebra Forum
    Replies: 1
    Last Post: February 26th 2007, 04:27 PM
  4. Pattern?
    Posted in the Math Topics Forum
    Replies: 2
    Last Post: February 25th 2007, 08:19 PM
  5. Replies: 7
    Last Post: January 3rd 2007, 03:55 AM

Search Tags


/mathhelpforum @mathhelpforum