🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.misc
Article #3900

Re: Binary floating point

#3900
From: Dik T. Winter
Date: Tue, 24 Nov 1992 01:52
22 lines
1486 bytes
In article <By67JE.CCz@mentor.cc.purdue.edu> hrubin@pop.stat.purdue.edu (Herman Rubin) writes:
 > >1000101110010 B 0010101010
 > 
 > This is the general idea.  However, something a little more flexible and
 > taking a little less time to type, transmit, etc., would be in order.
 > Typing 64 0's and 1's is too much of a chore, and also increases the
 > chance of error.
 > 
 > Unfortunately, natural notation like using E for exponent runs into 
 > problems.  A suggestion:  extend the present octal (I see problems
 > here for numbers less than 1; maybe they should start with 00) and
 > hex notation to allow an "integer point" to be inserted as well, and
 > use P for power of 2 by which the resulting fixed-point number is
 > to be multiplied.

You know what Herman.  There are languages that provide what you want!
Ada:  13#c.18644#e+12
meens c.18644 in base 13 notation multiplied by 13 to the power 12.
Fairly general I would think.
-- 
dik t. winter, cwi, kruislaan 413, 1098 sj  amsterdam, nederland
home: bovenover 215, 1025 jn  amsterdam, nederland; e-mail: dik@cwi.nl
Technical Details
Message-ID: <7978@charon.cwi.nl>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!cwi.nl!dik
References: <By4EM9.7qn@mentor.cc.purdue.edu> <1eou72INNe14@network.ucsd.edu> <By67JE.CCz@mentor.cc.purdue.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!cwi.nl!dik
From: dik@cwi.nl (Dik T. Winter)
Newsgroups: comp.lang.misc
Subject: Re: Binary floating point
Message-ID: <7978@charon.cwi.nl>
Date: 24 Nov 92 01:52:20 GMT
References: <By4EM9.7qn@mentor.cc.purdue.edu> <1eou72INNe14@network.ucsd.edu> <By67JE.CCz@mentor.cc.purdue.edu>
Sender: news@cwi.nl
Organization: CWI, Amsterdam
Lines: 22