PHP Manual

PHP function floor()

2019-09-11T08:04:03.000Z

Obsah článku

Availability in PHP 4.0

Round fractions down

Parameters

Parameter Data type Default value Note
$value float not The numeric value to round

Return values

float

value rounded to the next lowest integer.
The return value of floor is still of type
float because the value range of float is
usually bigger than that of integer.

Other resources

Official documentation of the floor function

Jan Barášek   Více o autorovi

Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

Rád vám pomůžu:

Související články

1.
111.

V jiných jazycích

Status:
All systems normal.
2025