IR Framework

Number.floor Method

Returns the largest integer less than or equal to the number.
object.floor()

Arguments

object
Required. Always the name of a Number object.



Return Value

The Number.floor() method returns the largest integer less than or equal to the number.


Remarks

The following example illustrates the use of the Number.floor method.

Console.Writeln((-45.2).floor());		//	Outputs -46 to the Console.


Requirements