floor(), floorf()

round to largest integral value not greater than x 

Function


SYNOPSIS

#include <math.h>

double floor(double x)

float floorf(float x)


DESCRIPTION

The floor() and floorf() functions return the largest integral value less than or equal to x.

The floorf() function is a single-precision version of function().


PARAMETERS

x 

Is the number whose floor to compute.


RETURN VALUES

The floor() function returns the largest integral value not greater than x, expressed as a double. If x is NaN, NaN is returned. If the return value would overflow, -HUGE_VAL is returned.


CONFORMANCE

floor(): ANSI/ISO 9899-1990

floorf(): PTC MKS Toolkit UNIX APIs extension


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
abs(), ceil(), fabs(), ieee(), math(), rint()


PTC MKS Toolkit 10.4 Documentation Build 39.