Skip to content

Commit

Permalink
Correct lower threshold in number to canonical string conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
adams85 committed Feb 5, 2024
1 parent 23f0a2b commit 50f21ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ConfigCatClient/Evaluation/RolloutEvaluator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ private static string UserAttributeValueToString(object attributeValue)
}
else if (attributeValue.TryConvertNumericToDouble(out var number))
{
var format = Math.Abs(number) is > 1e-7 and < 1e21
var format = Math.Abs(number) is >= 1e-6 and < 1e21
? "0.#################"
: "0.#################e+0";
return number.ToString(format, CultureInfo.InvariantCulture);
Expand Down

0 comments on commit 50f21ef

Please sign in to comment.