From: jsanchor@cs5.dasd.honeywell.com
Subject: Integer Division
Date: 1998/08/05
Date: 1998-08-05T00:00:00+00:00 [thread overview]
Message-ID: <6qa43u$eip$1@nnrp1.dejanews.com> (raw)
Hi guys, I have a question. It is so simple that it seems stupid. I was doing
a simple arithmetic operation 10/3. Now, I want the INTEGER division to
return the next whole number (i.e. 4). I know in floating_point type they
have an attribute called 'Ceiling. What about integer types? Currently, I am
doing a division operation B := A/3, & then a 'rem' operation if A rem 3 /=
0 then B = B + 1; Is there a nicer method?
Thank you in advance.
Sincerely,
Jay S.
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
next reply other threads:[~1998-08-05 0:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-08-05 0:00 jsanchor [this message]
1998-08-05 0:00 ` Integer Division Samuel Tardieu
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox