[Spambayes] Re: Matt Sergeant: Introduction
Matt Sergeant
msergeant@startechgroup.co.uk
Tue, 01 Oct 2002 16:22:59 +0100
Tim Peters wrote:
>>>>Off the top of my head, what does frexp() do?
>>>
>
>>>frexp(x)
>>>
>>>Return the mantissa and exponent of x, as pair (m, e).
>>>m is a float and e is an int, such that x = m * 2.**e.
>>>If x is 0, m and e are both 0. Else 0.5 <= abs(m) < 1.0.
>>
>
>>Ah cool. Same as Math::BigFloat's $x->parts().
>
>
> Maybe -- I like to think of it as being the same as the frexp() defined
> by the C standard <wink>.
Duh, yeah. That was just the first search.cpan.org result for mantissa ;-)
So it's the same as POSIX::frexp() ;-)