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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,dcab94c78b71ea2b,start X-Google-Attributes: gid103376,public From: Philip Bradley Subject: Fixed Point Numbers Date: 1999/05/27 Message-ID: #1/1 X-Deja-AN: 482826738 X-NNTP-Posting-Host: the-shieling.demon.co.uk:194.222.189.37 X-Trace: news.demon.co.uk 927833990 nnrp-03:13121 NO-IDENT the-shieling.demon.co.uk:194.222.189.37 MIME-Version: 1.0 Newsgroups: comp.lang.ada X-Complaints-To: abuse@demon.net Date: 1999-05-27T00:00:00+00:00 List-Id: What is the impact of the differing deltas in the following type definitions : type Long_Type is delta 180.0/2**31 range -180.0 .. 180.0; for Long_Type'Small use 180.0/2**31; for Long_Type'Size use 32; and type Long_Type is delta 256.0/2**31 range -180.0 .. 180.0 - (180.0/2**31); for Long_Type'Small use 180.0/2**31; for Long_Type'Size use 32; The first definition is the desired definition (and compiles using Gnat). Unfortunately the 2nd one is as close as I can get using a different compiler - one I am having to use, but not by choice! I am really only interested in the effect on the attributes, operators etc. of Long_type if the 2nd definition is used rather than 1st. Does anyone know? -- Philip Bradley