floor function

Syntax

  • float floor(x)

Parameters

  1. x—float

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