包含于math.h头文件

sqrt(float * number),返回number的开平方数,返回值为浮点型


sqrt使用时大多需要要强制类型转化,因为sqrt只支持double和float类型,
c=(int) sqrt((double)a*a+b*b);
c=(int) sqrt((float)a*a+b*b);