Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

integer value

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

809 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