From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, SUBJ_ALL_CAPS autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c4cb2c432feebd9d X-Google-Thread: 101deb,15c6ed4b761968e6 X-Google-Attributes: gid103376,gid101deb,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news3.google.com!news.glorb.com!news.hub.org!lon-transit.news.telstra.net!lon-in.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!53ab2750!not-for-mail From: "robin" Newsgroups: comp.lang.ada,comp.lang.pl1 References: <0ugu4e.4i7.ln@hunter.axlog.fr> <%P_cg.155733$eR6.26337@bgtnsc04-news.ops.worldnet.att.net> <6H9dg.10258$S7.9150@news-server.bigpond.net.au> <1hfv5wb.1x4ab1tbdzk7eN%nospam@see.signature> <2006052509454116807-gsande@worldnetattnet> <5rSdnTfTP7NHEyzZnZ2dnUVZ_tidnZ2d@comcast.com> <4vXsg.3182$tE5.2948@news-server.bigpond.net.au> <49qdnUCa5515tCDZnZ2dnUVZ_uqdnZ2d@comcast.com> Subject: Re: BINARY INTEGER X-Newsreader: Microsoft Outlook Express 4.72.3110.5 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Message-ID: Date: Wed, 19 Jul 2006 14:35:07 GMT NNTP-Posting-Host: 203.54.188.36 X-Complaints-To: abuse@bigpond.net.au X-Trace: news-server.bigpond.net.au 1153319707 203.54.188.36 (Thu, 20 Jul 2006 00:35:07 EST) NNTP-Posting-Date: Thu, 20 Jul 2006 00:35:07 EST Organization: BigPond Internet Services Xref: g2news2.google.com comp.lang.ada:5813 comp.lang.pl1:2047 Date: 2006-07-19T14:35:07+00:00 List-Id: glen herrmannsfeldt wrote in message <49qdnUCa5515tCDZnZ2dnUVZ_uqdnZ2d@comcast.com>... >robin wrote: >> glen herrmannsfeldt wrote in message ... > >(snip) > >>>PL/I definitely allows decimal, > >> Not for binary integers. > >I know of an IBM PL/I implementation that did FIXED DECIMAL using >binary arithmetic. So do I, but that's irrelevant. It's off-topic. > I don't know why doing FIXED BINARY using >decimal arithmetic would be any less legal. General purpose computers need to have fixed-point binary as one of the basic operatiions, along with the logical operations. It follows that FIXED BINARY will be implemented courtesy of fixed-point binary hardware. > Note that most >implementations do FLOAT DECIMAL in binary. That's because most hardware is float biunary, not float decimal. But again, that's irrelevant. > The scaling operations >required for fixed point operations with the radix point not immediately >to the right of the least significant digit are a little easier in the >appropriate base, but that isn't required. > >>>most likely even for FIXED BINARY variables. > >> Might have some trouble doing indexing and logical operations. > >There have been machines that did indexing in decimal. Which? >Logical operations are defined for BIT strings. In a general pupose computer, logical operations are defined in terms of operations on binary integers. > The conversion between >FIXED BINARY implemented in decimal Who is going to implement binary oiperations in decimal? > and BIT strings would have to >satisfy the language requirements, but otherwise should be legal. >(As is the conversion of FIXED DECIMAL to BIT strings.) Way off topic.