Results 1 to 2 of 2

Math Help - floating points help

  1. #1
    Newbie
    Joined
    Sep 2006
    Posts
    2

    floating points help

    convert it to denery
    its in the format C with sign bit first, next 6 bits exponent next 9 bits matissa itself

    1011100010101000
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Grand Panjandrum
    Joined
    Nov 2005
    From
    someplace
    Posts
    14,972
    Thanks
    4
    Quote Originally Posted by ashana_ha View Post
    convert it to denery
    its in the format C with sign bit first, next 6 bits exponent next 9 bits matissa itself

    1011100010101000
    lets assume that the format is:

    sign,exponent,mantissa

    with exponent and mantisa with msb in the leftmost position.

    Here the sign bit is 1 which makes our number -ve.

    the exponent is 011100 which is 0*1+0*2+1*4+1*8+1*16+0*32 = 28,
    but we must subtract from this the exponent offset, which should be 63
    so our exponent is 28-63=-35

    The mantisa is 010101000 but there is a hidden bit which makes this
    1010101000 which is:

    0*(1/512)+0*(1/256)+0*(1/128)+1*(1/64)+0*(1/32)+1*(1/16)+0*(1/8)+1*(1/4)+0*(1/2)+1*1=1.328125.

    So the number represented is:

    -1.328125 2^(-35) ~= -3.86535 10^(-11)

    RonL

    (I should check this carefully if I were you as my assumptions about your
    assumed 16 bit float representation could easily not matchthose that
    you are working to)
    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