1

I have the following simple variable, set to 1 in Visual Studio C#. When I view intellisense of test it shows as 0x00000001. Back a few years ago, from schoool, if I remember correctly this is the decimal/binary representaion of the number. I can't remember. Anyway is there a setting to get it back to the normal view of when it is 1 it is displayed as 1. Probably a stupid question!

int test = 1;
dee-see
  • 23,668
  • 5
  • 58
  • 91
KeelRisk
  • 749
  • 1
  • 9
  • 27

2 Answers2

8

When you view the value during debugging, right-click on the number and uncheck Hexadecimal Display

enter image description here

Andrei Drynov
  • 8,362
  • 6
  • 39
  • 39
0

Right click on the Watch Window, you will have the "HexaDecimal Display" ticked. Uncheck it.

Arun
  • 2,493
  • 15
  • 12