fmod

floor

#include <cmath>float floor(float num);double floor(double num); long double floor(long double num);

The floor( ) function returns the largest integer (represented as a floating-point value) not greater than num. For example, given 1.02, floor( ) would return 1.0. Given –1.02, floor( ) would return –2.0.

Related functions are fceil( ) and fmod( ).




C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net