round()

Math / Calculation

Description

Calculates the integer closest to the parameter.

Syntax

float round(float x)

Parameters

NameTypeDescription
xfloatnumber to round

Returns

float

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...