Re: float to integer conversion


Posted by Jean-Claude Servaye on March 28, 2001

In Reply to: float to integer conversion posted by p12114-andrewbobby on March 28, 2001 at 02:37:50:

: How can I convert a float value to integer value?

: thank you

Var
I : Integer;
R : Real;
...

I := Trunc(R);
or
I := Round(R);



Related Articles and Replies: