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.
Asked
Active
Viewed 1,981 times
1

mjwills
- 23,389
- 6
- 40
- 63

Praveen Kumar Rejeti
- 213
- 2
- 10
-
2Is intellisense showing you a **different representation** of the value ? https://www.binaryhexconverter.com/decimal-to-hex-converter – Shyju Nov 05 '18 at 06:03
-
1The 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
-
1There 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
-
4Possible 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 Answers
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
-
Yeah enable Disable that hexa decimal view - then its working fine.Thanks a lot – Praveen Kumar Rejeti Nov 05 '18 at 06:42
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