home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!relay!nswc-wo.nswc.navy.mil!kestes
- From: kestes@nswc-wo.nswc.navy.mil (Kent Estes)
- Subject: floating point question
- Message-ID: <1993Jan12.190702.1686@relay.nswc.navy.mil>
- Sender: news@relay.nswc.navy.mil
- Organization: Naval Surface Warfare Center
- Date: Tue, 12 Jan 1993 19:07:02 GMT
- Lines: 11
-
- I have an unsigned number representing the mantissa of the number
- I am creating. The problem is what is a better way of making
- the fraction part of a floating point number.
-
- The way I am currently doing this is looping through the bits
- in the number and dividing the result if the bit is set. My
- intuition tells me (and intuitions have been known to lie)
- there has got to be a better way than this...
-
- tnx kl
-
-