Skip to content

Commit fa75f4f

Browse files
Using invariance culture when converting to string (#4635)
* remove culture info * add invariantculture to both side
1 parent 6210c38 commit fa75f4f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Microsoft.ML.AutoML/Sweepers/Parameters.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
using System;
66
using System.Collections.Generic;
7+
using System.Globalization;
78
using Microsoft.ML.Internal.Utilities;
89

910
namespace Microsoft.ML.AutoML
@@ -128,7 +129,7 @@ public FloatParameterValue(string name, float value)
128129
Runtime.Contracts.Assert(!float.IsNaN(value));
129130
_name = name;
130131
_value = value;
131-
_valueText = _value.ToString("R");
132+
_valueText = _value.ToString("R", CultureInfo.InvariantCulture);
132133
}
133134

134135
public bool Equals(IParameterValue other)

0 commit comments

Comments
 (0)