From: Martin <martin.dowie@btopenworld.com>
Subject: Re: understanding floating point types
Date: Mon, 23 Aug 2010 00:15:09 -0700 (PDT)
Date: 2010-08-23T00:15:09-07:00 [thread overview]
Message-ID: <5c162267-72b0-49a0-bed2-620e880612df@k10g2000yqa.googlegroups.com> (raw)
In-Reply-To: 2d2a622b-6c4a-45b7-9e3c-a565d5dbc9e3@p3g2000yqp.googlegroups.com
On Aug 22, 8:05 pm, Ada novice <ycalleecha...@gmx.com> wrote:
[snip]
> 1. You used: type My_Float is digits 3; I tend to confuse the fact
> that digits 3 means 3 digits of precision after the decimal point?
Not quite - it's "3 significant (decimal) digits", e.g. 7_654.32 with
a float defined as 'digits 3', the "765" are 'guaranteed' what follows
those isn't (although in practice, any cpu I'm likely to be using,
will get more than the first 3 digits accurate).
-- Martin
next prev parent reply other threads:[~2010-08-23 7:15 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
2010-08-23 7:15 ` Martin [this message]
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