Force Conversion of String to Integer
Posted: 08 Oct 2020, 21:43
What is the preferred method to explicitly convert a string to an integer? I have a large predefined Map<int → string> called Lookup. I receive an Input string which contains a valid integer, but it sometimes includes leading zeroes. E.g. AHK looks for Lookup["01"] instead of Lookup. I am currently using Lookup[Round(Input)], but I'm wondering if there is a more elegant solution.