一分钟了解"c语言求绝对值函数abs"

根据你的数据是int,long,仍是double型,要用不一样的函数函数 #include <math.h>数据         iy   =   abs(   ix   );  //int型             ly   =   labs(   lx   );  //long型             dy   =   fabs(   dx   );  //double型math
相关文章
相关标签/搜索