This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
notes:discrete:fall2022:projects:lmr2 [2022/11/15 19:58] – [PSEUDOCODE] zswartwo | notes:discrete:fall2022:projects:lmr2 [2022/11/16 18:42] (current) – [BACKGROUND] gsuber | ||
---|---|---|---|
Line 8: | Line 8: | ||
Floating Point Addition: https:// | Floating Point Addition: https:// | ||
Floating Point Subtraction: | Floating Point Subtraction: | ||
+ | |||
+ | Here is an example: Given in IEEE 754: 11000000110110011001100110011010 | ||
+ | First bit (bit 0)- Represents positive or negative. In this case, the first bit is one, hence negative. | ||
+ | Bit 1-8 represents the exponent, 10000001 or 129 | ||
+ | Bit 9-32 represents the fraction, **.**10110011001100110011010, | ||
+ | |||
+ | Hence, we have -1 (because first bit is 1) times (1.7000000)×2^129-127 = -6.8 | ||
+ | Here is a helpful resource: http:// | ||
+ | |||
=====SPECIFICATIONS===== | =====SPECIFICATIONS===== | ||
Math functions should perform float operations following the IEEE 754 standard. You should have a demo showing off the functionality of the math functions you have made. The way you do this is up to you, but if you have any questions whether your demo is up to standard, you should ask in discord before submitting. | Math functions should perform float operations following the IEEE 754 standard. You should have a demo showing off the functionality of the math functions you have made. The way you do this is up to you, but if you have any questions whether your demo is up to standard, you should ask in discord before submitting. |