comp.lang.ada
 help / color / mirror / Atom feed
From: Richard Riehle <richard@adaworks.com>
Subject: Re: What this program is going to do?
Date: Thu, 24 Jul 2003 09:47:51 -0700
Date: 2003-07-24T16:46:04+00:00	[thread overview]
Message-ID: <3F200DB6.D59D24D6@adaworks.com> (raw)
In-Reply-To: 8765lsl4wp.fsf@inf.enst.fr

Samuel Tardieu wrote:

> >>>>> "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.  I hate to be a nitpicker, but your function has not return type.

Richard Riehle




  reply	other threads:[~2003-07-24 16:47 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
2003-07-24 16:47   ` Richard Riehle [this message]
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