Oh, then how about:

CString szTemp;

double dwTemp = 25.48;

int iVal = (int)dwTemp;

double iResolution = 4.0; // How many positions after the point

int iVal2 = (int)((dwTemp - (double)iVal) * pow(16.0, iResolution));

szTemp.Format("%X.%X", iVal, iVal2);


Rail


Recording Engineer/Software Developer

Rail Jon Rogut Software


Rail Jon Rogut Software