diff --git a/content/english/hpc/arithmetic/float.md b/content/english/hpc/arithmetic/float.md index dcc33039..20e18fe9 100644 --- a/content/english/hpc/arithmetic/float.md +++ b/content/english/hpc/arithmetic/float.md @@ -38,7 +38,7 @@ struct r { r operator+(r a, r b) { return {a.x * b.y + a.y * b.x, a.y * b.y}; } r operator*(r a, r b) { return {a.x * b.x, a.y * b.y}; } -r operator/(r a, r b) { return {a.x * b.x, a.y * b.y}; } +r operator/(r a, r b) { return {a.x * b.y, a.y * b.x}; } bool operator<(r a, r b) { return a.x * b.y < b.x * a.y; } // ...and so on, you get the idea ```