Skip to content
This repository was archived by the owner on Apr 28, 2020. It is now read-only.

Print doubles with InvariantCulture #9

Merged
merged 1 commit into from
Aug 18, 2018
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
4 changes: 3 additions & 1 deletion Json5/Json5Number.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using System.Globalization;

namespace Json5
{
public class Json5Number : Json5Primitive
Expand All @@ -21,7 +23,7 @@ protected override object Value

internal override string ToJson5String(string space, string indent)
{
return this.value.ToString();
return this.value.ToString(CultureInfo.InvariantCulture);
}

public static implicit operator double(Json5Number value)
Expand Down