comp.lang.ada
 help / color / mirror / Atom feed
From: shedlars@oasys.dt.navy.mil (Paul Shedlarski)
Subject: Integer truncation and other recipes
Date: 1996/05/22
Date: 1996-05-22T00:00:00+00:00	[thread overview]
Message-ID: <4nv3tmINNql5@oasys.dt.navy.mil> (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




             reply	other threads:[~1996-05-22  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-05-22  0:00 Paul Shedlarski [this message]
1996-05-23  0:00 ` Integer truncation and other recipes 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
replies disabled

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