Smaller double is not less than larger float
Opened this issue · 0 comments
bijington commented
Describe the bug
When performing comparison between double
and float
things go rather wrong.
var values = new Dictionary<string, object>
{
["FloatValue"] = 4.3f,
["DoubleValue"] = 4.3d,
};
var bad = new Expressive.Expression("4.0 < [FloatValue]");
var good = new Expressive.Expression("4.0 < [DoubleValue]");
Expected behavior
bad
should return true
.