Xref: utzoo comp.sources.wanted:6948 comp.unix.wizards:15376 comp.sys.sgi:900 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!bionet!ames!ucsd!net1!rmyers From: rmyers@net1.ucsd.edu (Robert Myers) Newsgroups: comp.sources.wanted,comp.unix.wizards,comp.sys.sgi Subject: Re: Float to sign/exp/mantissa Message-ID: <1580@ucsd.EDU> Date: 4 Apr 89 22:28:35 GMT References: <1026@cs-spool.calgary.UUCP> Sender: nobody@ucsd.EDU Reply-To: rmyers@net1.UUCP (Robert Myers) Organization: UCSD Network Operations Group Lines: 12 In article <1026@cs-spool.calgary.UUCP> paquette@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 > > aTdHvAaNnKcSe > Trev The routines frexp(3) and modf(3) are already part of libm and may be what you are looking for. Raul Rathmann, raul%sdnp1@ucsd.edu