comp.lang.ada
 help / color / mirror / Atom feed
From: vashwath@rediffmail.com (prashna)
Subject: What this program is going to do?
Date: 24 Jul 2003 00:39:57 -0700
Date: 2003-07-24T07:39:57+00:00	[thread overview]
Message-ID: <d40d7104.0307232339.4f4f1bf2@posting.google.com> (raw)

function PART_ENT (
         X : in     FLOAT ) 
     return FLOAT is 
      R : FLOAT;  
   begin
      -- Attention imprecision pour .5
      R := FLOAT (INTEGER (abs X));

      -- Round to Zero afin de corriger l'imprecision
      if R > abs X then
         R := R - 1.0;
      end if;

      -- Signe du resultat
      if X >= 0.0 then
         return R;
      else
         return - R;
      end if;
   end PART_ENT;
I found this program in source code of my project(code review).Can any
one explain what this program does?



             reply	other threads:[~2003-07-24  7:39 UTC|newest]

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