Number.floor MethodReturns the largest integer less than or equal to the number.object.floor() Arguments
Return ValueThe Number.floor() method returns the largest integer less than or equal to the number.RemarksThe following example illustrates the use of the Number.floor method.Console.Writeln((-45.2).floor()); // Outputs -46 to the Console. Requirements |