lectures.alex.balgavy.eu

Lecture notes from university.
git clone git://git.alex.balgavy.eu/lectures.alex.balgavy.eu.git
Log | Files | Refs | Submodules

Adding_subtracting floating point values.html (1338B)


      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      3 <html><head><link rel="stylesheet" href="sitewide.css" /><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><meta name="exporter-version" content="Evernote Mac 6.13.1 (455785)"/><meta name="altitude" content="0.005558321252465248"/><meta name="author" content="Alex Balgavy"/><meta name="created" content="2017-12-05 9:59:53 PM +0000"/><meta name="latitude" content="52.37364100782783"/><meta name="longitude" content="4.8361598895452"/><meta name="source" content="desktop.mac"/><meta name="updated" content="2017-12-05 10:08:07 PM +0000"/><title>Adding/subtracting floating point values</title></head><body><div><ol><li>Choose a number with the smaller exponent and move its mantissa right to make the exponents equal.</li><li>Exponent of the result is the same as the larger exponent.</li><li>Add/subtract the mantissas, determine sign of the result.</li><li>Normalise the resulting values.</li></ol><div><br/></div></div><div>Example:</div><div><br/></div><div><img src="Adding_subtracting%20floating%20point%20values.resources/Scannable%20Document%20on%205%20Dec%202017%20at%2023_07_42.png" height="1346" width="2056"/></div><div><br/></div></body></html>