PHP function ceil()

Availability in PHP 4.0

Round fractions up

Parameters

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

Return values

float

value rounded up to the next highest integer. The return value of ceil is still of type float as the value range of float is usually bigger than that of integer.

Other resources

Official documentation of the ceil function

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.