Bug in math.frexp?
david_ullrich at my-deja.com
david_ullrich at my-deja.com
Mon Jul 3 13:37:45 EDT 2000
In article <14688.12945.528521.351944 at cj42289-a.reston1.va.home.com>,
"Fred L. Drake, Jr." <fdrake at beopen.com> wrote:
>
> Tim Peters writes:
> > The docs are wrong. I just checked in a repaired version of
mathmodule.c.
> > Fred, would you please get the truth into the Library Reference
Manual's
> > math module docs too?
>
> --sigh--
> So are the Solaris and Linux man pages wrong, or just confusing?
I found some Linux docs on this that said
"If the argument x is not zero, the normalized fraction
is x times a power of two, and is always in the
range 1/2 (inclusive) to 1 (exclusive)."
This is not just wrong or confusing, this is _impossible_
if x < 0; a negative number simply is not a power of two times
a number in the range [1/2, 1).
DU
> Ok, I'll have something like your docstring checked in shortly.
>
> -Fred
>
> --
> Fred L. Drake, Jr. <fdrake at beopen.com>
> BeOpen PythonLabs Team Member
>
>
Sent via Deja.com http://www.deja.com/
Before you buy.
More information about the Python-list
mailing list