I discovered that the sum of a single-precision floating point column isn't always being computed correctly by Linqpad (v...)

Here's a contrived case that reproduces the problem:

var data = new[] {

new { Val = 1.0E+07f },

new { Val = 0.1E+07f },

}

.Dump();

Console.WriteLine($"Expected sum: {data.Sum(c => c.Val)}");

Here's a contrived case that reproduces the problem:

var data = new[] {

new { Val = 1.0E+07f },

new { Val = 0.1E+07f },

}

.Dump();

Console.WriteLine($"Expected sum: {data.Sum(c => c.Val)}");

1

## Comments