parseInt('bcedfg',16)
Base on this code I am getting 773855 in a JavaScript,
I go through the conversion table , and not sure how to get this “773855” value
my question is how parseint come out with this “773855” value , because I wanted to translate this tiny code in to a c# code , and is that any similar way in c# allow me to get this “773855” value
Use
Convert.ToInt32:It uses this overload:
Note that you will get
FormatExceptionbecause of thegin the string:MSDN
You’re not getting error in javascript as js tends to "forgive" too much errors, this one one of those examples.