Go to the first, previous, next, last section, table of contents.


floor

Syntax

#include <math.h>

double floor(double x);

Description

This function computes the largest integer not greater than x.

Return Value

The largest integer value less than or equal to x. Infinities and NaNs are returned unchanged.

Portability

ANSI, POSIX


Go to the first, previous, next, last section, table of contents.