When reading the C/AL code in NAV written by other developers you normally pick up smart way to do things. Yesterday I got one.
In my solutions I have been using a function to check if a string is numeric and another function to extract the numeric value from a string.