floor function

Syntax

  • float floor(float x)

Returns

The rounded integer value. If x is integral, x is returned.

Description

The floor function rounds x down to the nearest integer.

Related


In this topic