comp.lang.ada
 help / color / mirror / Atom feed
* Integer truncation and other recipes
@ 1996-05-22  0:00 Paul Shedlarski
  1996-05-23  0:00 ` Jon S Anthony
  0 siblings, 1 reply; 7+ messages in thread
From: Paul Shedlarski @ 1996-05-22  0:00 UTC (permalink / raw)



In Ada, how do you convert from a real to an integer by truncation?
That is, how would you convert a value such as 1.9 to 1?

Moreover, is there a book of recipes that anyone can recommend for
development of a math library for Ada?  Most of us have a background
in FORTRAN.

Thanks.

Paul Shedlarski (code 5600)
David Taylor Model Basin
CARDEROCKDIV, NSWC
Bethesda, MD     20084




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

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

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-05-22  0:00 Integer truncation and other recipes Paul Shedlarski
1996-05-23  0:00 ` Jon S Anthony
1996-06-04  0:00   ` John English
1996-06-04  0:00   ` Jon S Anthony
1996-06-05  0:00     ` Norman H. Cohen
1996-06-05  0:00   ` Robert I. Eachus
1996-06-08  0:00   ` Jon S Anthony

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