3 ms·
Weekend project: What Every Programmer Should Know About FP Arithmetic
- giu 17y agoAm I the only one who thought "What the hell is 'Functional Programming Arithmetic' " after reading this headline? :) I once had a more detailled look at floating-point numbers, and yes, it's quite a big topic. I like the site, because it's kept quite short, and it describes a few important aspects in regard to the usage of floating-point numbers in your programs (e.g. Comparison). Maybe you want to mention that there's also an IEEE Standard for Floating-Point Arithmetic: http://grouper.ieee.org/groups/754/ http://grouper.ieee.org/groups/754/
- eru 17y agoI was saved by noting the domain after the headline.
- chasingsparks 17y agoCoincidentally, I was in the process of doing the same thing. Then I came across http://www.drdobbs.com/cpp/184403224 http://www.drdobbs.com/cpp/184403224 which said what I wanted to say, exactly.
- brazzy 17y agoAuthor of the site here. The headline needed to be shortened to fit the 80 character limit :) I've linked to the Wikipedia page of the IEEE standard, but adding the original source is probably a good idea.
- memetichazard 17y agoYou seem to be missing the use of an absolute value function on your 'comparison' page.
- stralep 17y agoPartly off topic: Is it normal that I have only two real fears, Mosquitos and Floating Point Arithmetic? (And I know most of FPA stuff and few most useful numerically stable algorithms) BONUS POINTS: Which part of question is off-topic? :)