iOS开发 部分常用函数
2016-09-26 11:53
211 查看
iOS开发中可能会用到的部分函数汇集:
rand() ----随机数
abs() 、labs() ----整数绝对值
fabs() 、fabsf()
、fabsl() ----浮点数绝对值
floor() 、floorf() 、floorl() ----向下取整
ceil() 、 ceilf() 、ceill() ----向上取整
round() 、roundf() 、roundl() ----四舍五入
sqrt() 、sqrtf() 、sqrtl() ----求平方根
fmax() 、fmaxf() 、fmaxl() ----求最大值
fmin() 、 fminf() 、fminl() ----求最小值
hypot() 、hypotf() 、hypotl() ----求直角三角形斜边的长度
fmod() 、 fmodf() 、fmodl() ----求两数整除后的余数
modf() 、 modff() 、modfl() ----浮点数分解为整数和小数
frexp() 、 frexpf() 、frexpl() ----浮点数分解尾数和二为底的指数
sin() 、 sinf() 、sinl() ----求正弦值
sinh() 、sinhf() 、sinhl() ----求双曲正弦值
cos() 、 cosf() 、cosl() ----求余弦值
cosh() 、coshf() 、coshl() ----求双曲余弦值
tan() 、 tanf() 、tanl() ----求正切值
tanh() 、tanhf() 、tanhl() ----求双曲正切值
asin() 、asinf() 、asinl() ----求反正弦值
asinh() 、asinhf() 、asinhl() ----求反双曲正弦值
acos() 、 acosf() 、acosl() ----求反余弦值
acosh() 、acoshf() 、 acoshl() ----求反双曲余弦值
atan() 、 atanf() 、 atanl() ----求反正切值
atan2() 、atan2f() 、 atan2l() ----求坐标值的反正切值
atanh() 、atanhf() 、 atanhl() ----求反双曲正切值
文/Joson_Ju(简书作者)
原文链接:http://www.jianshu.com/p/0ca725ecf7f7
著作权归作者所有,转载请联系作者获得授权,并标注“简书作者”。
rand() ----随机数
abs() 、labs() ----整数绝对值
fabs() 、fabsf()
、fabsl() ----浮点数绝对值
floor() 、floorf() 、floorl() ----向下取整
ceil() 、 ceilf() 、ceill() ----向上取整
round() 、roundf() 、roundl() ----四舍五入
sqrt() 、sqrtf() 、sqrtl() ----求平方根
fmax() 、fmaxf() 、fmaxl() ----求最大值
fmin() 、 fminf() 、fminl() ----求最小值
hypot() 、hypotf() 、hypotl() ----求直角三角形斜边的长度
fmod() 、 fmodf() 、fmodl() ----求两数整除后的余数
modf() 、 modff() 、modfl() ----浮点数分解为整数和小数
frexp() 、 frexpf() 、frexpl() ----浮点数分解尾数和二为底的指数
sin() 、 sinf() 、sinl() ----求正弦值
sinh() 、sinhf() 、sinhl() ----求双曲正弦值
cos() 、 cosf() 、cosl() ----求余弦值
cosh() 、coshf() 、coshl() ----求双曲余弦值
tan() 、 tanf() 、tanl() ----求正切值
tanh() 、tanhf() 、tanhl() ----求双曲正切值
asin() 、asinf() 、asinl() ----求反正弦值
asinh() 、asinhf() 、asinhl() ----求反双曲正弦值
acos() 、 acosf() 、acosl() ----求反余弦值
acosh() 、acoshf() 、 acoshl() ----求反双曲余弦值
atan() 、 atanf() 、 atanl() ----求反正切值
atan2() 、atan2f() 、 atan2l() ----求坐标值的反正切值
atanh() 、atanhf() 、 atanhl() ----求反双曲正切值
文/Joson_Ju(简书作者)
原文链接:http://www.jianshu.com/p/0ca725ecf7f7
著作权归作者所有,转载请联系作者获得授权,并标注“简书作者”。
相关文章推荐
- ios开发--常用宏定义(部分转)
- 【IOS】IOS开发常用函数
- iOS开发数据库篇—SQLite常用的函数
- IOS开发常用数学函数
- iOS开发学习笔记 2-9 C语言部分 内存分配函数 函数指针 指针函数 void*
- IOS开发常用数学函数
- IOS开发---常用函数和常数
- iOS开发学习笔记 2-9 C语言部分 内存分配函数 函数指针 指针函数 void*
- iOS开发学习笔记 2-6 C语言部分 函数及变量的作用域
- ios开发--常用宏定义(部分转)
- 【IOS】IOS开发常用函数
- IOS开发之----常用函数和常数
- iOS开发中常用函数及控件
- IOS开发常用函数
- IOS开发常用数学函数 收藏
- IOS开发常用数学函数
- IOS开发常用数学函数
- IOS开发常用数学函数
- iOS开发数据库篇—SQLite常用的函数
- iOS开发数据库篇—6.纯C写的一些SQLite常用的函数