Float to sign/exp/mantissa

John Buck john at polyof.UUCP
Wed Apr 5 23:36:35 AEST 1989


In article <1026 at cs-spool.calgary.UUCP>, paquette at cpsc.ucalgary.ca (Trevor Paquette) writes:
>    I am sure that someone out there has a routine that given
> a floating point number, what is the sign, exponent and mantissa
> of the number.. I'd rather not re-invent the wheel if this has
> already been done...

Most Unix manuals have the frexp(3C) and ldexp(3c) functions which do
what you want.  [man 3 frexp].  If your system does not have them under
frexp/ldexp, they MAY be called something else.  Check your permuted
index.

John Buck
john at polyof.poly.edu
trixie!polyof!john



More information about the Comp.sys.sgi mailing list