Reputation: 281
I have an extra decimal string, which i have to convert to decimal value. I am doing this now. it works for smaller values , for larger values it fails.
long.TryParse(hexadecimalstringinput, System.Globalization.NumberStyles.HexNumber, null, out convertedValue))
For inputs such as "FFFF_FFFF_FFFF_FFFF_FFFF" it fails. Any alternate approach for this?
Upvotes: 0
Views: 163
Reputation: 533
If you really need to handle such values, take a look on BigInteger: MSDN BigInteger
Upvotes: 1