1

Textbox text is number, and after int.Parse the debugger is showing the value as HEX rather than the value of 958 that I expect.

enter image description here

mjwills
  • 23,389
  • 6
  • 40
  • 63
  • 2
    Is intellisense showing you a **different representation** of the value ? https://www.binaryhexconverter.com/decimal-to-hex-converter – Shyju Nov 05 '18 at 06:03
  • 1
    The VS debugger represents numeric values in hexadecimal format, hence the hex number is exactly same as stored in the variable. – Tetsuya Yamamoto Nov 05 '18 at 06:06
  • 1
    There is a Hex button shown when Visual Studio is run in Debug mode to enable/disable the Hex display. Try that – Praneet Nadkar Nov 05 '18 at 06:06
  • 4
    Possible duplicate of [Visual Studio debugger - Displaying integer values in Hex](https://stackoverflow.com/questions/3354453/visual-studio-debugger-displaying-integer-values-in-hex) – mjwills Nov 05 '18 at 06:07
  • Yeah enable Disable that hexa decimal view - then its working fine.Thanks a lot – Praveen Kumar Rejeti Nov 05 '18 at 06:42

2 Answers2

3

It looks like it is parsing correctly.

Your debugger is just showing you the value in hexadecimal.

948 in base 10 is equal to 3b4 in hexadecimal.

Ergwun
  • 12,579
  • 7
  • 56
  • 83
0

While debugging open Locals Window, right click value displaying in Hex and click Hexdecimal Display.

Done, displays in Decimal.

David Morrow
  • 262
  • 4
  • 9