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, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ec3fa884e8653f90,start X-Google-Attributes: gid103376,public From: dvdeug@my-deja.com Subject: Math Questions Date: 1999/06/01 Message-ID: <7ivc7m$q75$1@nnrp1.deja.com>#1/1 X-Deja-AN: 484266434 To: dstarner98@aasaa.ofe.org X-Http-Proxy: 1.0 x39.deja.com:80 (Squid/1.1.22) for client 12.72.142.3 Organization: Stillwater Linux User Groups X-Article-Creation-Date: Tue Jun 01 01:15:32 1999 GMT Reply-To: dstarner98@aasaa.ofe.org Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.05 [en] (Win95; I) Date: 1999-06-01T00:00:00+00:00 List-Id: I'm working on a number library for Ada, and I came across some problems? (1)Is there any way of dealing with infinity in real numbers in Ada (like IEEE's +INF)? In my bound float unit, it would be much nicer to store it as between 1 and infinity than just throw a Constraint Error. (2)I'd like to create a IEEE745 type, but then you couldn't use it as the base type for the bound float unit. Is there any way to make a type look like a number to generics? (3)Alternately, is there any way to make a generic package accept both standard floats and any number-like types I create? -- David Starner - dstarner98@aasaa.ofe.org -- David Starner - dvdeug@my-dejanews.com, dstarner98@aasaa.ofe.org, dvdeug@hotmail.com GURPS: http://w Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.