Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to convert Float to Integer?!

Status
Not open for further replies.

yili

Programmer
Feb 1, 2004
1
SG
coulad any body help me?!
I want to use "mod" to find a remainder from a Float,
however, it only works under integer!!!

HELP ME PLEASE!!!!!
I am a new user!!
 
I normally use Trunc myself:

Var aReal : Real;
aInt : Integer;

aInt := Trunc(aReal);

If aReal is within the integer range!


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top