#include <cstdio>
#include <cstdio>
#include <cmath>

using namespace std;
int main ( int argc, const char* argv[] )
{
const float inf =1.0f/0.0f;
printf("%4.2f\n",inf);
printf("%4.2f\n",INFINITY);
float nan = inf - inf;
printf("%4.2f\n",nan);

unsigned char* p = reinterpret_cast<unsigned char*>(&nan);
printf("0x%x %x %x %x\n", p[0], p[1], p[2], p[3]);

nan = INFINITY - INFINITY;
printf("%4.2f\n",nan);

p = reinterpret_cast<unsigned char*>(&nan);
printf("0x%x %x %x %x\n", p[0], p[1], p[2], p[3]);

}
