From 401b40fed18a2de31873e43e153c9fdda9ad51b4 Mon Sep 17 00:00:00 2001 From: Mark Dickinson Date: Sat, 13 Jul 2019 14:51:14 +0100 Subject: [PATCH] Fix inconsequential typo in math.remainder algorithm comments. --- Modules/mathmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/mathmodule.c b/Modules/mathmodule.c index 552cb78c88d19f..09923f61678867 100644 --- a/Modules/mathmodule.c +++ b/Modules/mathmodule.c @@ -646,7 +646,7 @@ m_remainder(double x, double y) Warning: some subtlety here. What we *want* to know at this point is whether the remainder m is less than, equal to, or greater than half of absy. However, we can't do that comparison directly because we - can't be sure that 0.5*absy is representable (the mutiplication + can't be sure that 0.5*absy is representable (the multiplication might incur precision loss due to underflow). So instead we compare m with the complement c = absy - m: m < 0.5*absy if and only if m < c, and so on. The catch is that absy - m might also not be