comp.lang.ada
 help / color / mirror / Atom feed
* VALUE and IMAGE operations for FLOAT
@ 1992-12-23 11:40 agate!spool.mu.edu!darwin.sura.net!news.larc.nasa.gov!nimbus.larc.nasa.go
  0 siblings, 0 replies; 2+ messages in thread
From: agate!spool.mu.edu!darwin.sura.net!news.larc.nasa.gov!nimbus.larc.nasa.go @ 1992-12-23 11:40 UTC (permalink / raw)


	I am interested in finding a software reuseable package that
performs the equivalent VALUE and IMAGE operations but for the FLOAT
type. I saw that Grady Booch has a package in his "Software Components
with Ada" that supports this in the package Floating_Point_Utilities.
However, only the package specification is included in the book. You
must send away for the implementation.

	Where can you get these package? How much are they (remember
the deficit)? Are there other packages available. I am currently
getting setup on AdaNet so I will be looking there shortly. What
ever happened to the SIMTEL20 Ada site?

	I know this is alot of questions but I would appreciate
your responses.

	Please respose by email since I rarely look at this group.
Oh and by the way the phone works too (ain't technology great).	

------------------------------------------------------------------
-- Larry Matthias						--
-- Lockheed Engineering and Sciences Company			--
-- 144 Research Drive						--
-- Hampton, VA 23666						--
-- (804) 766-9726						--
--								--
-- email: l.e.matthias@larc.nasa.gov				--
-- fax:   (804) 766-9601					--
------------------------------------------------------------------
-- My views are my own. There are no puppet strings.		-- 
------------------------------------------------------------------
-- Insert very funny remarks here.				--
------------------------------------------------------------------
-- Insert famous obscure quotation here.			--
------------------------------------------------------------------

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

* Re: VALUE and IMAGE operations for FLOAT
@ 1992-12-28 14:45 agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state
  0 siblings, 0 replies; 2+ messages in thread
From: agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state @ 1992-12-28 14:45 UTC (permalink / raw)


In article <1h9j75INNs2i@rave.larc.nasa.gov>, matthias@nimbus.larc.nasa.gov
(Larry Matthias) writes: 

|>      I am interested in finding a software reuseable package that
|> performs the equivalent VALUE and IMAGE operations but for the FLOAT
|> type. I saw that Grady Booch has a package in his "Software Components
|> with Ada" that supports this in the package Floating_Point_Utilities.
|> However, only the package specification is included in the book. You
|> must send away for the implementation.
|>
|>      Where can you get these package? How much are they (remember
|> the deficit)?

Here's a solution that even those on a government budget can afford: 

Instantiate Text_IO.Float_IO.  Use the string-to-float version of Get to
write your own Value function (or use Get directly if that solves your
problem).  Use the float-to-string version of Put write your own Image
function (or use Put directly).

Your compiler maker has already done the hard work by providing these
procedures.

--
Norman H. Cohen    ncohen@watson.ibm.com

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

end of thread, other threads:[~1992-12-28 14:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1992-12-28 14:45 VALUE and IMAGE operations for FLOAT agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!zaphod.mps.ohio-state
  -- strict thread matches above, loose matches on Subject: below --
1992-12-23 11:40 agate!spool.mu.edu!darwin.sura.net!news.larc.nasa.gov!nimbus.larc.nasa.go

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