Description:

This example demonstrates how to parse a number using an implied, but exact, pattern based on the language settings. An application using this method to parse a number can automatically assume that the pattern for that type of number will be applied based on the user’s formatting preferences. An application can also choose to override the user’s preferences and specify the settings to use for a given parse operation.

This example demonstrates how to parse a number as a currency, percent or decimal. The results displayed below show each of these types using the current user’s preferences as well as two example forms.