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=-0.3 required=5.0 tests=BAYES_00,FREEMAIL_FROM, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,9dfd83e22ef315db X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-12-23 07:52:58 PST Path: supernews.google.com!sn-xit-02!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!newsfeed00.sul.t-online.de!t-online.de!newsfeeds.belnet.be!news.belnet.be!news-raspail.gip.net!news.gsl.net!gip.net!netnews.globalip.ch!news.vtx.ch!not-for-mail From: Mats Weber Newsgroups: comp.lang.ada Subject: Re: exponentiation of fixed point or decimal Date: Sat, 23 Dec 2000 16:23:51 +0100 Organization: VTX Services SA Message-ID: <3A44C381.B9C2A92C@mail.com> References: <87hf46uah6.fsf@moon.mteege.de> Reply-To: matsw@mail.com NNTP-Posting-Host: lsb-catv-2-p230.vtxnet.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.76 (Macintosh; U; PPC) X-Accept-Language: en,pdf Xref: supernews.google.com comp.lang.ada:3381 Date: 2000-12-23T16:23:51+01:00 List-Id: In my compoenent library http://lglwww.epfl.ch/Team/MW/mw_components.html there is a package called exponentiation_functions that will do what you want, using the multiplication defined for the fixed point type. You will have to be careful about roundoff errors, fixed point types can be tricky.