Solved

integer value

Posted on 2006-11-08
4
208 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
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 …

772 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