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 bed330d commit 20a54acCopy full SHA for 20a54ac
Fix8.cs
@@ -99,8 +99,8 @@ public static explicit operator decimal(Fix8 value) {
99
}
100
101
public static explicit operator Fix8(decimal value) {
102
- var nearestExact = Math.Round(value * 16m) * 0.0625m;
103
- return new Fix8((sbyte)(nearestExact * One.m_rawValue));
+ var nearestExact = Math.Round(value * 16m);
+ return new Fix8((sbyte)(nearestExact ));
104
105
106
public static Fix8 operator +(Fix8 x, Fix8 y) {
0 commit comments