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,184737148aef02ac X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: Fixed point multiplication ambiguity Date: 1999/01/14 Message-ID: #1/1 X-Deja-AN: 432610864 Sender: matt@mheaney.ni.net References: <369E14CA.90715966@lmco.com> NNTP-Posting-Date: Thu, 14 Jan 1999 09:54:45 PDT Newsgroups: comp.lang.ada Date: 1999-01-14T00:00:00+00:00 List-Id: "Marc A. Criley" writes: > procedure Tf is > > D : Duration := 5.0; > > Dec_Delt : Integer := Integer (Duration'(D * 10.0) + 0.5); ^^^^^^^^^^ ^ > > begin > null; > end Tf; Add the type qualification I've indicated. D * 10.0 returns universal fixed, and you tried to add a number to that product. Is addition defined for universal fixed + universal real? I think you have to explicitly state the type of the universal fixed product before you can do anything else to it.