Skip to content

Commit

Permalink
chore: remove incorrect comment
Browse files Browse the repository at this point in the history
  • Loading branch information
filzrev committed Oct 26, 2024
1 parent 2d369d5 commit 9f39f57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ private static object CastInteger(ulong number, TypeCode typeCode)
else if (double.TryParse(v, NumberStyles.Float, formatter.NumberFormat, out var doubleValue))
{
var floatValue = (float)doubleValue;
if (!float.IsNaN(floatValue) && !float.IsInfinity(floatValue)) // .NET 6 or later support float.IsNormal
if (!float.IsNaN(floatValue) && !float.IsInfinity(floatValue))
{
result = floatValue;
}
Expand Down

0 comments on commit 9f39f57

Please sign in to comment.