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

round()

Top  Previous  Next

round( number: Extended ) : Integer

 

Rounds number, a floating point value, to the nearest integer value.

 

Parameters

 

number

floating point numeric value

 

var f: Double;

var i: integer;

 

f := 3.51;

 

i := round( f );

 

//i is now equal to 4;