int decNum = 123456;
char hexNum[16];
// decimal number to hexadecimal number
sprintf_s(hexNum, 16, "%X", decNum);
printf("%d -> %s \n", decNum, hexNum);
// hexadecimal number to decimal number
sprintf_s(hexNum, 16, "FF");
decNum = (int)strtol(hexNum, nullptr, 16);
printf(" %s -> %d \n", hexNum, decNum);
Subscribe to:
Post Comments (Atom)
-
3 vertices and cross product If 3 vertices' coordinates are given, the size of the cross product of the two vectors is same to two ...
-
Reduced normatrix for photogrammetric bundle adjustment based on the collinearity equations Note: There are $m_1$ photos and $m_2$ obje...
No comments:
Post a Comment