feat: added decimal operator

This commit is contained in:
2025-11-19 08:50:54 +01:00
parent e370c1d0c3
commit 1de652e88e

View File

@@ -44,6 +44,8 @@ struct decimal {
return {MUL_F(d1.i, d2.i)};
}
decimal &operator*=(const decimal &d) { return (*this) = {MUL_F(i, d.i)}; }
friend decimal operator/(const decimal &d1, const decimal &d2) {
return {DIV_F(d1.i, d2.i)};
}