Calculator Truncates Hexadecimal Numbers Converted from Decimal (187514)
The information in this article applies to:
This article was previously published under Q187514 SYMPTOMS
When you use the Calculator tool to convert a decimal number to a
hexadecimal number, some digits in the hexadecimal number may be missing.
As a result, if you convert back to a decimal number, the number is
different from what you originally typed.
CAUSE
This problem can occur if you attempt to convert a very large decimal
number to hexadecimal. If the hexadecimal equivalent of a decimal number
is more than eight digits, only the eight rightmost digits are displayed.
RESOLUTION
To prevent this problem from occurring, do not use Calculator to convert
large decimal numbers to hexadecimal.
To work around this problem so that you receive an error message if the
hexadecimal number is too large, use the version of Calculator included
with Windows 95. To do so, follow these steps:
- Click Start, point to Find, and then click Files Or Folders.
- In the Named box, type calc.exe, and then
click Find Now.
- In the list of found files, right-click the Calc.exe file, and then
type a new name for the Calc.exe file (such as Calc.xxx).
- Extract a new copy of the Calc.exe file from your original Windows 95
disks or CD-ROM into the Windows folder. The Calc.exe file is located
in the following locations:
- The Win95_02.cab cabinet file on the Windows 95 CD-ROM.
- The Win95_03.cab cabinet file on the Windows 95 OEM Service Release
2 (OSR2) CD-ROM.
- The Win95_03.cab cabinet file on disk 3 of the original Windows 95
DMF floppy disks.
- The Win95_03.cab cabinet file on disk 3 of the original Windows 95
non-DMF floppy disks.
STATUS
Microsoft has confirmed this to be a problem in Microsoft Windows 98.
MORE INFORMATION
For example, the hexadecimal equivalent of "12345678901" is "2dfdc1c35."
When you convert "12345678901" to a hexidecimal number using Calculator,
the result is "dfdc1c35" (the 2 is truncated). When you convert "dfdc1c35"
back to a decimal number, the number is changed to "3755744309."
Modification Type: | Minor | Last Reviewed: | 12/16/2004 |
---|
Keywords: | kbprb KB187514 |
---|
|