comp.lang.ada
 help / color / mirror / Atom feed
From: dog.ee.lbl.gov!hellgate.utah.edu!fcom.cc.utah.edu!cc.utah.edu!eyring@ucbv
Subject: What's the floating point equivalent of 'first 'last ??
Date: 24 Mar 92 16:00:29 GMT	[thread overview]
Message-ID: <1992Mar24.100029.1@cc.utah.edu> (raw)

This may be a FAQ, but I wouldn't know where to look for the FAQ
if there was one.

What's the equivalent of 'first and 'last on a floating point type?

It's not 'small and 'large because 'small is the smallest POSITIVE
nonzero number in the type. (ie just above zero)

For example:

	type my_type is range -50.0 .. +75.0;

What I need are attributes which will return the -50.0 and the +75.0.

If it were all my own code I would put in constants, but we are 
interfacing with another code set here, ie I can't change their types.



-- 
>Bob Witmer
>Eyring Corp., Flight Simulation Div.
>Salt Lake City, Utah
>eyring@cc.utah.edu

             reply	other threads:[~1992-03-24 16:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1992-03-24 16:00 dog.ee.lbl.gov!hellgate.utah.edu!fcom.cc.utah.edu!cc.utah.edu!eyring [this message]
  -- strict thread matches above, loose matches on Subject: below --
1992-03-25 14:35 What's the floating point equivalent of 'first 'last ?? Arthur Evans
replies disabled

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