comp.lang.ada
 help / color / mirror / Atom feed
From: je@bton.ac.uk (John English)
Subject: Re: Integer truncation and other recipes
Date: 1996/06/04
Date: 1996-06-04T00:00:00+00:00	[thread overview]
Message-ID: <DsGC9A.4KD@bton.ac.uk> (raw)
In-Reply-To: JSA.96May22221027@organon.com


Jon S Anthony (jsa@organon.com) wrote:
: In article <4nv3tmINNql5@oasys.dt.navy.mil> shedlars@oasys.dt.navy.mil (Paul S
: > 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?
: Go to index and find entry:
:   Truncation attribute 

Fine for floating point types, but you're out of luck if you want to truncate 
*fixed point* types, for which the 'Truncation attribute isn't available...

-- 
----------------------------------------------------------------------------
John English <je@brighton.ac.uk>, Dept. of Computing, University of Brighton
  "Disks are divided into sex and tractors..."
----------------------------------------------------------------------------




  reply	other threads:[~1996-06-04  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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