- Timestamp:
- Aug 9, 2017, 7:43:07 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/JSON/JSONNumber.cs
r279 r309 23 23 } 24 24 25 public override string ToString (bool prettyPrint = false, int currentLevel = 0)25 public override void ToString (StringBuilder stringBuilder, bool prettyPrint = false, int currentLevel = 0) 26 26 { 27 return value.ToString (System.Globalization.CultureInfo.InvariantCulture);27 stringBuilder.Append (value.ToCultureInvariantString ()); 28 28 } 29 29 … … 86 86 } else { 87 87 double number; 88 if (! double.TryParse(sbNum.ToString (), out number)) {88 if (!Utils.TryParseDouble(sbNum.ToString (), out number)) { 89 89 throw new MalformedJSONException ("Mantissa is not a valid decimal (\"" + sbNum.ToString () + "\")"); 90 90 }
Note:
See TracChangeset
for help on using the changeset viewer.