Navigation: Function Reference > General Utility Functions > int()

int()

Top  Previous  Next

int( number: Extended ) : Extended;

 

Returns the integer part of a floating point number as a floating point number.

 

Parameters

 

number

floating point numeric value

 

var a: Double;

var b: Double;

 

a := 200.9999;

 

b := int( a );

 

//b is now equal to 200.00;