Results 1 to 3 of 3

Math Help - Floating Point Notation

  1. #1
    Newbie
    Joined
    Jul 2007
    Posts
    2

    Question Floating Point Notation

    I want to know how to convert the following binary values to floating-point notation using the IEEE standard form:

    100 111 000 0000
    -111 0111 0110 0000
    0.0000 0100 1101
    -0.000 0000 0001 0101 1111

    I have looked at various websites but cannot find one that explains the procedure in a way that I can understand. I am new to the forum and this is my first post. Any help would be greatly appreciated.

    Thanks in advance.
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Newbie
    Joined
    Jul 2007
    Posts
    2

    Angry Floating Point Revisited

    If I had been able to find the information on the www I would not have joined the forum. I am not Einstein!
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by Broadgate View Post
    I want to know how to convert the following binary values to floating-point notation using the IEEE standard form:

    100 111 000 0000
    -111 0111 0110 0000
    0.0000 0100 1101
    -0.000 0000 0001 0101 1111

    I have looked at various websites but cannot find one that explains the procedure in a way that I can understand. I am new to the forum and this is my first post. Any help would be greatly appreciated.

    Thanks in advance.
    First have you read the Wikipedia artice on IEEE floating point representation?

    Your first number can be written:

    1.00 111 000 0000 2^12

    This is now in normalized form, so the mantisa will be:

    00111000000000000000000

    (since we need to pad it to 23 bits)

    The exponent will be binary 127+12=139 (the 127 is the offset) or 10001101
    binary (which is 8 bits so the right length).

    The sign bit is 0.

    so we have: 0|10001101|00111000000000000000000 (assuming this is the
    default endianism for floats).

    Check this as I have not spent much time verifying it myself

    RonL
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. help with floating point error
    Posted in the Math Topics Forum
    Replies: 0
    Last Post: October 17th 2011, 08:27 PM
  2. Floating Point Format
    Posted in the Advanced Math Topics Forum
    Replies: 5
    Last Post: December 13th 2010, 07:27 PM
  3. floating point representation
    Posted in the Calculus Forum
    Replies: 2
    Last Post: April 28th 2010, 02:40 AM
  4. Floating Point Representation
    Posted in the Discrete Math Forum
    Replies: 0
    Last Post: March 29th 2010, 02:40 AM
  5. Floating point operations
    Posted in the Advanced Algebra Forum
    Replies: 1
    Last Post: February 24th 2010, 12:32 PM

Search Tags


/mathhelpforum @mathhelpforum