search 登录 注册
arrow_back返回列表
ID:106008
light_modedark_modestar
Lv.6 胸怀六国志
edit_note帖子 477
stars积分 406,560
event加入 2012-05-02
怀旧国机

C语言函数 - F开头 fabs

schedule发表于 2012-12-02 17:08:00 visibility查看 175 chat_bubble回复 0
#1 楼主
函数名: fabs
功 能: 返回浮点数的绝对值
用 法: double fabs(double x);
程序例:
#include <stdio.h>
#include <math.h>
int main(void)
{
float number = -1234.0;
printf(“number: %f absolute value: %f\n“,
number, fabs(number));
return 0;
}

forum
暂无回复,快来抢沙发!
登录 后才能回复