floor

The floor method rounds a number downwards to the nearest integer.

 

Syntax

System.Int32 floor(System.Double x);

 

Parameters

x

number to round

 

Return Value

Returns the the nearest integer when rounding downwards.

 

Remarks

Member of Math.

 

Example