Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Typo in rational division implementation.
  • Loading branch information
sergiovaneg committed Jul 8, 2025
commit 83ea74625df710338a38ac75f3c4ece21b572b26
2 changes: 1 addition & 1 deletion content/english/hpc/arithmetic/float.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down