comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: understanding floating point types
Date: Mon, 23 Aug 2010 09:13:17 +0200
Date: 2010-08-23T09:13:16+02:00	[thread overview]
Message-ID: <ihh7vtq38px5.maz97rii43na.dlg@40tude.net> (raw)
In-Reply-To: 216148a0-992d-4b24-8823-644765a3df09@i13g2000yqd.googlegroups.com

On Sun, 22 Aug 2010 23:29:54 -0700 (PDT), Ada novice wrote:

> On Aug 22, 9:34�pm, "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
> 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



  parent reply	other threads:[~2010-08-23  7:13 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-22  9:11 understanding floating point types Ada novice
2010-08-22  9:51 ` Dmitry A. Kazakov
2010-08-22 10:37   ` Ada novice
2010-08-22 10:39     ` Ada novice
2010-08-22 13:57     ` Dmitry A. Kazakov
2010-08-22 17:15       ` Ada novice
2010-08-22 18:16         ` Dmitry A. Kazakov
2010-08-22 19:05           ` Ada novice
2010-08-22 19:34             ` Dmitry A. Kazakov
2010-08-23  6:29               ` Ada novice
2010-08-23  6:40                 ` J-P. Rosen
2010-08-23  7:13                 ` Dmitry A. Kazakov [this message]
2010-08-23  7:15             ` Martin
2010-08-23 11:42               ` Ada novice
2010-08-24 12:14                 ` Ada novice
2010-08-24 14:05                   ` Jacob Sparre Andersen
2010-08-24 14:36                     ` Ada novice
2010-08-22 17:22       ` Yannick Duchêne (Hibou57)
2010-08-22 18:49         ` Ada novice
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox