floor()

Math / Calculation

Description

Calculates the closest integer that is less than or equal to the value of the parameter.

Syntax

float floor(float x)

Parameters

NameTypeDescription
xfloatnumber to evaluate

Returns

float

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...