Skip to content
Merged
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
5 changes: 3 additions & 2 deletions JSONObject.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Globalization;
/*
Copyright (c) 2015 Matt Schoen

Expand Down Expand Up @@ -352,9 +353,9 @@ void Parse(string str, int maxDepth = -2, bool storeExcessLevels = false, bool s
default:
try {
#if USEFLOAT
n = System.Convert.ToSingle(str);
n = System.Convert.ToSingle(str, CultureInfo.InvariantCulture);
#else
n = System.Convert.ToDouble(str);
n = System.Convert.ToDouble(str, CultureInfo.InvariantCulture);
#endif
if(!str.Contains(".")) {
i = System.Convert.ToInt64(str);
Expand Down