Prototype
IntNumber:=Trunc(floatNumber)
Description
It returns the integer part of a real number.
Parameters
FloatNumber: real number from wich obtain the integer part.
Returned value
IntNumber: integer value corresponding to the integer part of the real number.
Notes
None.
Example
// It stores the table handle
UnaTabella:= TableOpen('c:\documents\index','result.db');
//It makes a division
Quotient:= 99/14;
//It takes the integer part of the quotient(7)
QuotInt:=Trunc(Quotient);
//It converts into string
QuotIntStr:=IntToStr(QuotInt);
//It sets the current record edit mode
TableEdit(UnaTabella);
// It changes the field value
TableSetField (UnaTabella,5, QuotIntStr);
// It confirms the change
TablePost(UnaTabella);
// It executes other operations