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

Floating Point Addition - hardware/software

  1. Mar 6, 2013 #1
    Can someone explain to me how floating point addition is implemented on a x86 in hardware or software. I would like to find out what method is used to add varying number size. if I have a 1 X 10^-100 + 2 X 10^50. are the exponents average for a common ground or does the large one rule etc. or is it something else?
     
  2. jcsd
  3. Mar 6, 2013 #2

    rcgldr

    User Avatar
    Homework Helper

    The fractional (mantissa) part of the number with the lower exponent is shifted to the right before addition is performed. This results in truncation error.
     
  4. Mar 6, 2013 #3
    Thanx, for the answer, this came up in a question in the math section "is it better to add an array of numbers from smaller to larger or larger to smaller". Everyone answered small to large, which got to me to thinking about what really goes on...Therefore the larger exponent rules.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Floating Point Addition - hardware/software
  1. Floating point error (Replies: 8)

  2. Matlab floating point (Replies: 6)

  3. Floating point numbers. (Replies: 18)

Loading...