We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c3384f commit 7f361b9Copy full SHA for 7f361b9
Provider/src/FirebirdSql.Data.FirebirdClient/Types/FbDecFloat.cs
@@ -137,13 +137,13 @@ public bool Equals(FbDecFloat other)
137
{
138
var difference = other.Exponent - Exponent;
139
var value = other.Coefficient * BigInteger.Pow(10, difference);
140
- return value == Coefficient;
+ return value.Equals(Coefficient);
141
}
142
if (Exponent > other.Exponent)
143
144
var difference = Exponent - other.Exponent;
145
var value = Coefficient * BigInteger.Pow(10, difference);
146
- return value == other.Coefficient;
+ return value.Equals(other.Coefficient);
147
148
return false;
149
0 commit comments