[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

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/ISO C C89; C99
POSIX 1003.2-1992; 1003.1-2001