Skip to content

Commit 0148470

Browse files
authored
Fix inconsequential typo in math.remainder algorithm comments. (#14746)
1 parent e441847 commit 0148470

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/mathmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ m_remainder(double x, double y)
646646
Warning: some subtlety here. What we *want* to know at this point is
647647
whether the remainder m is less than, equal to, or greater than half
648648
of absy. However, we can't do that comparison directly because we
649-
can't be sure that 0.5*absy is representable (the mutiplication
649+
can't be sure that 0.5*absy is representable (the multiplication
650650
might incur precision loss due to underflow). So instead we compare
651651
m with the complement c = absy - m: m < 0.5*absy if and only if m <
652652
c, and so on. The catch is that absy - m might also not be

0 commit comments

Comments
 (0)