diff options
author | Tim Peters <tim.peters@gmail.com> | 2000-09-16 03:54:24 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2000-09-16 03:54:24 (GMT) |
commit | 78fc0b57dfd4bf8d3d3ab82e4ffe98cbd6075dac (patch) | |
tree | bbc3e5a62e821b16cdfd0acc94a439b481cb90ed /Objects/floatobject.c | |
parent | 53db8154e604959daa1edc08c6573a43f896e410 (diff) | |
download | cpython-78fc0b57dfd4bf8d3d3ab82e4ffe98cbd6075dac.zip cpython-78fc0b57dfd4bf8d3d3ab82e4ffe98cbd6075dac.tar.gz cpython-78fc0b57dfd4bf8d3d3ab82e4ffe98cbd6075dac.tar.bz2 |
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!
Diffstat (limited to 'Objects/floatobject.c')
-rw-r--r-- | Objects/floatobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/floatobject.c b/Objects/floatobject.c index 946e3d9..774996f 100644 --- a/Objects/floatobject.c +++ b/Objects/floatobject.c @@ -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 |