diff options
| author | a1xd <[email protected]> | 2020-12-22 21:52:28 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-12-22 21:52:28 -0500 |
| commit | 755403708953d8acf860d1f8ab471e8896c72a6a (patch) | |
| tree | 0be89da26c895d9a52dffde02409bf75952441c8 /grapher/Constants | |
| parent | Merge pull request #48 from a1xd/improve-docs (diff) | |
| parent | rename tryparse, add type (diff) | |
| download | rawaccel-755403708953d8acf860d1f8ab471e8896c72a6a.tar.xz rawaccel-755403708953d8acf860d1f8ab471e8896c72a6a.zip | |
Merge pull request #51 from a1xd/fp-parse
fallback on invariant format when parsing fields
Diffstat (limited to 'grapher/Constants')
| -rw-r--r-- | grapher/Constants/Constants.cs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/grapher/Constants/Constants.cs b/grapher/Constants/Constants.cs index d669d25..5bee626 100644 --- a/grapher/Constants/Constants.cs +++ b/grapher/Constants/Constants.cs @@ -1,4 +1,5 @@ using System.Drawing; +using System.Globalization; namespace grapher { @@ -110,6 +111,9 @@ namespace grapher /// <summary> Default name of settings file. </summary> public const string DefaultSettingsFileName = @"settings.json"; + /// <summary> Style used by System.Double.Parse </summary> + public const NumberStyles FloatStyle = NumberStyles.Float | NumberStyles.AllowThousands; + #endregion Constants #region ReadOnly |