home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / msdos / programm / 12027 < prev    next >
Encoding:
Text File  |  1993-01-12  |  815 b   |  22 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!relay!nswc-wo.nswc.navy.mil!kestes
  3. From: kestes@nswc-wo.nswc.navy.mil (Kent Estes)
  4. Subject: floating point question
  5. Message-ID: <1993Jan12.190702.1686@relay.nswc.navy.mil>
  6. Sender: news@relay.nswc.navy.mil
  7. Organization: Naval Surface Warfare Center
  8. Date: Tue, 12 Jan 1993 19:07:02 GMT
  9. Lines: 11
  10.  
  11. I have an unsigned number representing the mantissa of the number
  12. I am creating.  The problem is what is a better way of making
  13. the fraction part of a floating point number. 
  14.  
  15. The way I am currently doing this is looping through the bits
  16. in the number and dividing the result if the bit is set.  My
  17. intuition tells me (and intuitions have been known to lie)
  18. there has got to be a better way than this...
  19.  
  20. tnx kl
  21.  
  22.