Solved

integer value

Posted on 2006-11-08
4
210 Views
Last Modified: 2010-04-16
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
0
Comment
Question by:Autofreak
  • 2
4 Comments
 
LVL 15

Expert Comment

by:ozymandias
ID: 17901926
Its hex for 41717.
0
 

Author Comment

by:Autofreak
ID: 17902351
Is there a way to see the value as 41717?
Serge
0
 
LVL 15

Expert Comment

by:ozymandias
ID: 17902401
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
 

Accepted Solution

by:
merlin309 earned 50 total points
ID: 17902738
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

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question