home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.cbm
- Path: sparky!uunet!newsflash.concordia.ca!nstn.ns.ca!cs.dal.ca!ug.cs.dal.ca!digdon
- From: digdon@ug.cs.dal.ca (Mike Digdon)
- Subject: Re: Floating point math in ML
- Message-ID: <BzMHr0.4Kn@cs.dal.ca>
- Sender: usenet@cs.dal.ca (USENET News)
- Nntp-Posting-Host: ug2.cs.dal.ca
- Organization: Math, Stats & CS, Dalhousie University, Halifax, NS, Canada
- References: <Byun1x.H1y@cs.dal.ca> <1h12q6INNlgd@uniwa.uwa.edu.au>
- Date: Mon, 21 Dec 1992 18:52:11 GMT
- Lines: 16
-
- >
- >When being manipulated, a flating point number is given by:
- >
- >2(exponent-129)*(1+((m1 and 127)+(m2+(m3+m4/256)/256)/128) where m1=byte
- >1, m2 = byte 2 etc.
- >
- >When stored in Ram, multiply the above by (-1)^(m1 and 128).
- >
-
- This is what I was actually looking for. I have Mapping the 64, which lists all
- of the math stuff, but no where did it say how the actual number was converted.
- The above formula seems to be what I was looking for.. thanx muchly..
- --
- Mike Digdon - Vice Prez DSCSS - Dalhousie University
- digdon@ug.cs.dal.ca -- Halifax, NS
- - Real programmers never work nine to five -
-