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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,548c38bb2d3e1bb6 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news4.google.com!feeder.news-service.com!nf02.dk.telia.net!starscream.dk.telia.net!news.tele.dk!news.tele.dk!small.news.tele.dk!bnewspeer01.bru.ops.eu.uu.net!bnewspeer00.bru.ops.eu.uu.net!emea.uu.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: understanding floating point types Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <74406fc1-f64b-4a3e-9dd6-301f1ed467ab@w30g2000yqw.googlegroups.com> <7b0ca24f-4a5e-43a9-9f71-e4adffb98694@q1g2000yqg.googlegroups.com> <37d8fbc1-fdaf-4ca9-9393-6163f2e3fa2e@s9g2000yqd.googlegroups.com> <2d2a622b-6c4a-45b7-9e3c-a565d5dbc9e3@p3g2000yqp.googlegroups.com> <7mcl3j29wtw1.xle9n3lvga8c.dlg@40tude.net> <216148a0-992d-4b24-8823-644765a3df09@i13g2000yqd.googlegroups.com> Date: Mon, 23 Aug 2010 09:13:17 +0200 Message-ID: NNTP-Posting-Date: 23 Aug 2010 09:13:16 CEST NNTP-Posting-Host: b842307b.newsspool2.arcor-online.net X-Trace: DXC=OFa[K_6L5=8gP]QSEBQ^d4A9EHlD;3Yc24Fo<]lROoR18kF[i>47_Cd=E2= X-Complaints-To: usenet-abuse@arcor.de Xref: g2news1.google.com comp.lang.ada:13650 Date: 2010-08-23T09:13:16+02:00 List-Id: On Sun, 22 Aug 2010 23:29:54 -0700 (PDT), Ada novice wrote: > On Aug 22, 9:34�pm, "Dmitry A. Kazakov" > wrote: > > Thanks for the explanation. If a model number is a number which can be > accurately representable by a computer, then I don't understand the > term machine number. The machine number is used by the compiler to implement the model number. The properties of the machine numbers depend on the hardware and the compiler, for example it may have binary mantissa and hexadecimal exponent. It may have IEEE 754 non-numeric elements like NaN. It can be an analogue computer with a DAC on the ALU's input and ADC on the output. It can be an oracle who gives answers. The machine number is a floating-point model of that thing. > On my computer I can have Long_Long_Float (18 > digits). In this case is the model number precision not equal to the > machine number precision? The model number of 18 decimal digits precision requires at least 61 binary bits of mantissa. That is S'Mantissa. This is independent on any hardware. The machine number of Intel FPU has 64 bits. The attribute S'Machine_Mantissa is this implementation-dependent number of bits. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de