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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,327e8fd2c366a586 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!newshub.sdsu.edu!news.zanker.org!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: matthias_k Newsgroups: comp.lang.ada Subject: Re: Help with fixed type decimal numbers Date: Mon, 13 Sep 2004 14:23:08 +0200 Organization: T-Online Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.t-online.com 1095078188 06 20929 aHEfXLMLpUB8zio 040913 12:23:08 X-Complaints-To: usenet-abuse@t-online.de X-ID: TDC6POZQreggFTP9o52UXuQxJqYSxlsoLZCw8bxLXXBzhjj-UUcLsh User-Agent: Mozilla Thunderbird 0.5 (X11/20040306) X-Accept-Language: en-us, en In-Reply-To: Xref: g2news1.google.com comp.lang.ada:3668 Date: 2004-09-13T14:23:08+02:00 List-Id: David C. Hoos, Sr. wrote: > It means exactly what the Ada95 Reference Manual > says it means, viz.: > >> From section 3.5.9: > > > 7 In a fixed_point_definition or digits_constraint, > the expressions given after the reserved words delta and digits shall be > static; their values > shall be positive. > 8 The set of values of a fixed point type comprise > the integral multiples of a number called the small of the type. For a > type defined by an > ordinary_fixed_point_definition (an ordinary fixed > point type), the small may be specified by an > attribute_definition_clause (see 13.3); if so > specified, it shall be no greater than the delta > of the type. If not specified, the small of an > ordinary fixed point type is an implementation- > defined power of two less than or equal to the > delta. > > 9 For a decimal fixed point type, the small equals > the delta; the delta shall be a power of 10. If a > real_range_specification is given, both bounds of > the range shall be in the range > -(10**digits-1)*delta .. +(10**digits-1)*delta. > > In oiher words, the delta fixes the value of the > least-significant bit of the binary representation, > and thus restricts the set of values for the type > to integer multiples of the delta, up to the > limits established by the digits specification for > the type. > > ----- Original Message ----- From: "matthias_k" > Newsgroups: comp.lang.ada > To: > Sent: September 13, 2004 6:10 AM > Subject: Help with fixed type decimal numbers > > >> Hi all, >> >> what exactly does the 'delta' keyword imply when defining a fixed >> decimal type? >> >> thanks in advance, >> Matthias >> _______________________________________________ >> comp.lang.ada mailing list >> comp.lang.ada@ada-france.org >> http://www.ada-france.org/mailman/listinfo/comp.lang.ada >> >> > > Nevermind, found it myself.