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

floor()

Top  Previous  Next

floor( number: Extended ) : Integer;

 

Rounds number to negative infinity and returns the nearest whole integer number.

 

Parameters

 

number

floating point numeric value

 

var i: integer;

var n: Double;

 

n := 2.75;

 

i := floor( n );

 

//i is now equal to 2