🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7621

floating point question

#7621
From: Kent Estes
Date: Tue, 12 Jan 1993 19:07
10 lines
834 bytes
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
Technical Details
Message-ID: <1993Jan12.190702.1686@relay.nswc.navy.mil>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!relay!nswc-wo.nswc.navy.mil!kestes

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer
Path: arc1-ca.pugleaf.net!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