Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private static void CallParseWithStylesAndProvider()
CultureInfo provider;

// Parse string using " " as the thousands separator
// and "." as the decimal separator.
// and "," as the decimal separator for fr-FR culture.
value = "892 694,12";
style = NumberStyles.AllowDecimalPoint | NumberStyles.AllowThousands;
provider = new CultureInfo("fr-FR");
Expand All @@ -141,7 +141,7 @@ private static void CallParseWithStylesAndProvider()
// Unable to parse '892 694,12'.

// Parse string using "$" as the currency symbol for en-GB and
// en-us cultures.
// en-US cultures.
value = "$6,032.51";
style = NumberStyles.Number | NumberStyles.AllowCurrencySymbol;
provider = new CultureInfo("en-GB");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ Module modMain
Dim provider As CultureInfo

' Parse string using " " as the thousands separator
' and "." as the decimal separator.
' and "," as the decimal separator for fr-FR culture.
value = "892 694,12"
style = NumberStyles.AllowDecimalPoint Or NumberStyles.AllowThousands
provider = New CultureInfo("fr-FR")
Expand All @@ -127,7 +127,7 @@ Module modMain
' Unable to parse '892 694,12'.

' Parse string using "$" as the currency symbol for en-GB and
' en-us cultures.
' en-US cultures.
value = "$6,032.51"
style = NumberStyles.Number Or NumberStyles.AllowCurrencySymbol
provider = New CultureInfo("en-GB")
Expand Down