|
-
March 31st, 1999, 05:42 PM
#9
Re: DoubleToHEX!!!Urgent
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|