comp.lang.ada
 help / color / mirror / Atom feed
* Math Questions
@ 1999-06-01  0:00 dvdeug
  1999-06-02  0:00 ` Robert Dewar
  1999-06-03  0:00 ` Samuel T. Harris
  0 siblings, 2 replies; 3+ messages in thread
From: dvdeug @ 1999-06-01  0:00 UTC (permalink / raw)
  To: dstarner98

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.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-06-03  0:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-01  0:00 Math Questions dvdeug
1999-06-02  0:00 ` Robert Dewar
1999-06-03  0:00 ` Samuel T. Harris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox