comp.lang.ada
 help / color / mirror / Atom feed
From: Samuel Tardieu <sam@rfc1149.net>
Subject: Re: What this program is going to do?
Date: Thu, 24 Jul 2003 10:12:22 +0200
Date: 2003-07-24T10:12:22+02:00	[thread overview]
Message-ID: <8765lsl4wp.fsf@inf.enst.fr> (raw)
In-Reply-To: d40d7104.0307232339.4f4f1bf2@posting.google.com

>>>>> "prashna" == prashna  <vashwath@rediffmail.com> writes:

prashna> I found this program in source code of my project(code
prashna> review).Can any one explain what this program does?

Excuse me for being rude, but if you can't figure yourself what this
function does, you are certainly not qualified to participate in a
code review (except as a person whose code is being reviewed but it
does not look like it's your code here).

This function returns the integer part of the floating point
variable. It does the same thing as:

function Integer_Part (X : Float) is
begin
  if X >= 0.0 then
    return Float'Floor (X);
  else
    return Float'Ceiling (X);
  end if;
end Integer_Part;

  Sam
-- 
Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/sam



  reply	other threads:[~2003-07-24  8:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-24  7:39 What this program is going to do? prashna
2003-07-24  8:12 ` Samuel Tardieu [this message]
2003-07-24 16:47   ` Richard Riehle
2003-07-24 22:22     ` 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