Control error checking with #define in C++ flaot conversion