[Spambayes] Re: Matt Sergeant: Introduction

Tim Peters tim.one@comcast.net
Tue, 01 Oct 2002 11:10:12 -0400


>>>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>.