Skip to content

Freakin a(tof)!

Fri Apr 09 2004

I had some very humble console app beginnings in C++. Ya know, "cash register" dos-like programs, completely keyboard driven.

However, my beginnings had nothing to do with converting strings to and from floats. I spent a better part of today wondering why atof would not return anything but a 0.000000 from a floating-point string. My platform is Windows XP - is it clear yet? If nothing else than for my own personal reference, in MFC it could possibly be better to use _wtof().

Goodbye first half of Friday.

💾 May the source be with you. v3.2.419