integer value

Hi Guys,
            I am running a C# project and see 0x0000a2f5 value in the locals window for an integer variable account that I assign the value of 41717. What is 0x0000a2f5? I understand it's some other representation of 41717, say int32 or smth. I would like to see 41717 in the Locals not  0x0000a2f5, is it possible?

Thanks,
Serge
AutofreakAsked:
Who is Participating?
 
merlin309Commented:
In the locals window. right mouse click and deselect 'Hexadecimal Display'.  That should turn it back into displaying base 10 values by default.

Mark
0
 
ozymandiasCommented:
Its hex for 41717.
0
 
AutofreakAuthor Commented:
Is there a way to see the value as 41717?
Serge
0
 
ozymandiasCommented:
It should appear as that.
If I setup some simple code like this :

int x = 41717;

// insert a breakpoint here

Console.WriteLine(x.ToString());

My locals window shows x as 41717.

I'm not sure why yours is showing it in hex.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.