C語言常用的數學函數

C語言常用的數學函數 (1)abs()函數 函數原型:int abs(int i) 功能:求整數的絕對值 (2)labs()函數 函數原型:long labs(long i) 功能:求長型整數的絕對值 (3)fabs()函數 函數原型:double fabs(float i) 功能:求浮點數的絕對值 (4)floor()函數 函數原型:double floor(double x) 功能:求不大於x
相關文章
相關標籤/搜索