In Atmel Studio 7 watch window the signed numbers are displaying in hexadecimal. How do I get them to display as a regular integer?
Display of signed numbers
Author
Message
Last Edited: Wed. Mar 25, 2020 - 11:25 PM
This reply has been marked as the solution. #2
Right click the value in the watch window. The popup lets you turn off the hex formatting.
Jim
Level: 10k+ Postman
Joined: Fri. Jul 1, 2005
Posts: 21339 View posts
Location: Basingstoke, Hampshire, UK
dnoyeB wrote:
the signed numbers are displaying in hexadecimal
Not just signed numbers, surely?
As Jim says, you have just 2 options to cover everything: Hex or not.
If it is NOT hex formatted, it will take the display format from the data type. If it is an unsigned integer, it will show it that way. If it is a signed integer, it will show it as signed.
By using the right-click, you can change the format of any individual watch variable, so that they do NOT have to all be the same. That hex/not-hex selection may also control the format for newly added watch variables; don't remember that behavior, for certain.
Jim
Last Edited: Wed. Mar 25, 2020 - 11:07 PM
I thought I tried that but I guess I hadn't. Thanks!