mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Fixed legit gripe from c.l.py that math.fmod docs aren't confusing enough.
FRED, please check my monkey-see-monkey-do Tex fiddling!
This commit is contained in:
parent
53db8154e6
commit
78fc0b57df
3 changed files with 6 additions and 3 deletions
|
@ -399,7 +399,7 @@ float_divmod(PyFloatObject *v, PyFloatObject *w)
|
|||
PyFPE_START_PROTECT("divmod", return 0)
|
||||
vx = v->ob_fval;
|
||||
mod = fmod(vx, wx);
|
||||
/* fmod is typically exact, so vx-mod is *mathemtically* an
|
||||
/* fmod is typically exact, so vx-mod is *mathematically* an
|
||||
exact multiple of wx. But this is fp arithmetic, and fp
|
||||
vx - mod is an approximation; the result is that div may
|
||||
not be an exact integral value after the division, although
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue