几个数学函数

 

NAME ceil -- round to smallest integral value not less than x 
SYNOPSIS 
#include <math.h> 
double ceil(double x); 
long double ceill(long double x); 
float ceilf(float x); 
DESCRIPTION 
The ceil() functions return the smallest integral value greater than or equal to x.SPECIAL VALUES ceil(+-0) returns +-0. ceil(+-infinity) returns +-infinity.
-------------------------------------------------------------------------------
NAME abs -- integer absolute value function 
LIBRARY Standard C Library (libc, -lc) 
SYNOPSIS 
#include <stdlib.h> 
int abs(int i); 
DESCRIPTION The abs() function computes the absolute value of the integer iRETURNVALUES The abs() function returns the absolute value.
-------------------------------------------------------------------------------
NAME floor -- round to largest integral value not greater than x 
SYNOPSIS 
#include <math.h> 
double floor(double x); 
long double floorl(long double x); 
float floorf(float x); 
DESCRIPTION 
 The floor() functions return the largest integral value less than or equal to x.SPECIAL VALUES floor(+-0) returns +-0. floor(+-infinity) returns +-infinity.

原文链接:http://developer.apple.com/library/ios/#documentation/System/Conceptual/ManPages_iPhoneOS/man3/floor.3.html#//apple_ref/doc/man/3/floor

posted @ 2011-12-13 21:45  Gloolo  阅读(140)  评论(0编辑  收藏  举报