Category Archives: AltDevBlogADay

Comparing Floating Point Numbers, 2012 Edition

This post is a more carefully thought out and peer reviewed version of a floating-point comparison article I wrote many years ago. This one gives solid advice and some surprising observations about the tricky subject of comparing floating-point numbers. A … Continue reading

Posted in AltDevBlogADay, Floating Point, Programming | Tagged , , , , , , | 179 Comments

Don’t Store That in a Float

I promised in my last post to show an example of the importance of knowing how much precision a float has at a particular value. Here goes. As a general rule this type of data should never be stored in … Continue reading

Posted in AltDevBlogADay, Floating Point, Programming | Tagged , , , , , , | 27 Comments

Stupid Float Tricks

Type Punning is Not a Joke I left the last post with a promise to share an interesting property of the IEEE float format. There are several equivalent ways of stating this property, and here are two of them.

Posted in AltDevBlogADay, Floating Point, Programming | Tagged , , , | 36 Comments

Tricks With the Floating-Point Format

Years ago I wrote an article about how to do epsilon floating-point comparisons by using integer comparisons. That article has been quite popular (it is frequently cited, and the code samples have been used by a number of companies) and … Continue reading

Posted in AltDevBlogADay, Floating Point, Math, Programming | 28 Comments

Top Ten Technologies of 2011

It seemed wrong to do a ‘normal’ blog post on December 23rd, and my programming themed “Night Before Christmas” rap medley never quite came together, so instead I’m doing a top-ten list. Well, not really a “top-ten” list, but a … Continue reading

Posted in AltDevBlogADay, Programming | 4 Comments

Increased Reliability Through More Crashes

Shipping games that don’t crash is hard, and it’s important to use every tool available to try to find bugs. Static code analysis is one technique that I’ve discussed in the past and for some classes of bugs it is … Continue reading

Posted in AltDevBlogADay, Code Reliability, Programming | Tagged , , | 18 Comments

A Tale of Two Call Stacks

My kingdom for some symbols I spend a large portion of my time at work trying to make things faster and less crashy. Usually the problems I investigate are in our own code so I have full information – source … Continue reading

Posted in AltDevBlogADay, Programming, Symbols | 15 Comments

Source Indexing is Underused Awesomeness

If you’ve ever had to debug code that was not built on your machine – whether looking at crash dumps or debugging live code – then you need source indexing. If you’ve ever wasted time trying to find the source … Continue reading

Posted in AltDevBlogADay, Programming, Visual Studio | 20 Comments