Assuming you are trying to convert string
to int
:
var i = Int32.Parse("FF", System.Globalization.NumberStyles.HexNumber)
However, your example 1847504890
not suitable for int
. Use a longer type instead.
var i = Int64.Parse("1847504890", System.Globalization.NumberStyles.HexNumber)
source share