IDL conver string to int

Converting to int or float: If you have a string "5" or "9.32", it can be converted to an int or float that mathematical operations can be performed on by adding 0 (for ints) or 0. (for floats) to the string. "5"+0 results in the int 5. "9.32"+0. results in the float 9.32000.

你可能感兴趣的:(IDL conver string to int)