How to convert a decimal number to a hexadecimal number
Converts decimal numbers to hexadecimal numbers.
If the function is unavailable and returns the error value #NAME? , install and load the Analysis Tool Library add-in.
Operation method:
- On the Tools menu, click Add-in.
- In the Available Add-ins list, select Analysis Tool Library and click OK.
- If necessary, follow the instructions in the setup program.
grammar
DEC2HEX(number,places)
Number: specifies the decimal number to be converted. If the argument number is negative, places is omitted. The DEC2HEX function returns 10 bits in hexadecimal
Number (40 bits of binary number), the highest bit is a sign bit, the remaining 39 bits are numeric bits. Negative numbers are represented by the complement of binary numbers.
Places: The number of characters to be used. If places is omitted, the DEC2HEX function is represented by the fewest characters that can represent this number. When needed in return
places is especially useful when the value is preceded by zero.
Instructions
■ If number< -549, 755, 813, 888 or number > 549, 755, 813, 887,
DEC2HEX returns the #NUM! Error value .
■ If number is non-numeric, the DEC2HEX function returns the #VALUE! Error. .
■ If the DEC2HEX function requires more bits than places specifies, it returns the #NUM! Error value. .
■ If places is not an integer, round the truncation.
■ If places is non-numeric, the DEC2HEX function returns the #VALUE! Error. .
■ If places is negative, DEC2HEX returns the #NUM! Error value. .
I want to create a clean, concise and efficient office reference manual, in order to maintain a good reference experience, I did not add any third-party advertisements in my blog, of course, if you are willing, you can watch the following video, it can bring me some income, so that I can better maintain the server to provide higher quality service, thank you for your help and support.
You can choose any link below to watch my videos and I will earn some money to strengthen the site and resist DDOS attacks that may happen at any time, thank you for your support!
(Please note: Please do not maliciously click on links or video ads to increase invalid traffic, as this can result in lower or no revenue.)
Learn to consult the manual video
(Will be released in the later period with the consult the manual article, please pay attention.)
My Febspot video list (Learn after-school relaxation videos)
https://suu.us/sponsor
My Febspot video home page
https://www.febspot.com/leet4477/