Debugging magic numbers

I came across a magic number today: -0.00132704

I was seeing a whole bunch of values initialized to this number in an automated test, and thought it must mean something. It turns out it is used by Microsoft "to mark uninitialised allocated heap memory" - hex 0xBAADF00D coverts to -0.00132704 as a floating-point value.

Searching for -0.00132704 turns up a number of interesting examples in other people's projects. :)
Post a Comment

Popular posts from this blog

Inno Setup custom data directory location

Inno Setup MSVC vcredist without bothering your users

Followup: Ubuntu persistent USB console boot, or why won't my car read this USB stick?