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.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,cc6a4bc415a41111,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.8.229 with SMTP id u5mr38837441pba.0.1317291931599; Thu, 29 Sep 2011 03:25:31 -0700 (PDT) Path: lh7ni7430pbb.0!nntp.google.com!news1.google.com!postnews.google.com!dm9g2000vbb.googlegroups.com!not-for-mail From: "RasikaSrinivasan@gmail.com" Newsgroups: comp.lang.ada Subject: fixed point vs floating point Date: Thu, 29 Sep 2011 03:25:31 -0700 (PDT) Organization: http://groups.google.com Message-ID: <440acd0c-f6ca-4c24-a8ae-3c5dbf71467c@dm9g2000vbb.googlegroups.com> NNTP-Posting-Host: 71.175.94.19 Mime-Version: 1.0 X-Trace: posting.google.com 1317291931 32208 127.0.0.1 (29 Sep 2011 10:25:31 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 29 Sep 2011 10:25:31 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: dm9g2000vbb.googlegroups.com; posting-host=71.175.94.19; posting-account=mZyFSQoAAABfOmklsh1d8TPbS2LncUKl User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUARLECNK X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_1) AppleWebKit/534.48.3 (KHTML, like Gecko) Version/5.1 Safari/534.48.3,gzip(gfe) Xref: news1.google.com comp.lang.ada:18192 Content-Type: text/plain; charset=ISO-8859-1 Date: 2011-09-29T03:25:31-07:00 List-Id: friends I am investigating the applicability of fixed point to a numerical problem. I would like to develop the algorithm as a generic and test with different floating and fixed point types to decide which one to go with. Questions: - ada.numerics family is pretty much floating point only - is this correct? - can we design a generic (function or procedure) that can accept either fixed point or floating point data types at the same time excluding other types thanks for hints/pointers, srini