Description

Round a number down to the nearest whole number

Syntax

floor(number)

Parameters

Input ParameterTypeDescription
numbernumberThe number to be rounded down

Return value

Type
number

Sample

ExampleResultDescription
floor(15.7)15Returns the largest whole number that is less than or equal to the input number

To view all the Math and Number functions, click here.