We often use the PARSEINT function to convert the strings as int value. The PARSEINT function has two parameters that can be set, and the second parameter can be default.
PARSEINT ("string", in advance)
var num1 = Parseint ("10", 2) // 2
var num1 = Parseint ("10", 8) // 8
var num1 = Parseint ("10", 10) // 10
var num1 = Parseint ("10", 16) // 16
The inlet parameters can be selected 16, 8, 10, and 2 in advance.
Usually we use 10 -in -production, it is best to always use the second parameter and set it to 10. If there is no second parameter, the function determines how to choose the input. (There may be problems.