美文网首页iOS笔记
[iOS]开发的函数

[iOS]开发的函数

作者: 德山_ | 来源:发表于2017-04-26 22:37 被阅读3次

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() ----求反双曲正切值

相关文章

  • iOS之UIView

    初识iOS APP开发#### 在iOS APP开发中, main函数仍是程序的入口和出口, 但main函数不需要...

  • 常用函数

    mark:iOS开发中可能会用到的一些函数 iOS中的round/ceil/floorf函数略解

  • autoreleasepool

    main 函数可以说是在整个 iOS 开发中非常不起眼的一个函数,却是整个 iOS 应用的入口。 @autorel...

  • [iOS]开发的函数

    rand() ----随机数 abs() / labs() ----整数绝对值 fabs() / fabsf() ...

  • 常用数学函数讲解

    iOS开发常用函数 1、 三角函数 double sin (double); 正弦 double cos (dou...

  • iOS Developer 初级面试常见问题总结

    iOS 开发 RunLoop Cell 图片异步加载优化 iOS 函数式编程的实现 && 响应式编程概念 内存恶鬼...

  • iOS开发 -- C语言基础3(函数)

    iOS开发 -- C语言基础3(函数) 什么是函数 一、函数的分类 C语言中的函数就是面向对象中的"方法",C语言...

  • iOS书单&文章&工具

    书单: iOS Animations by Tutorials函数式SwiftiOS开发进阶Effective O...

  • iOS程序启动->dyld加载->runtime初始

    程序的开始main函数与Coding生涯的开始hello World!.png iOS开发中,main函数是我们熟...

  • iOS 开发Tip之一

    iOS 开发Tip之一 获取当前执行函数的名字NSStringFromSelector(_cmd)_cmd 可以拿...

网友评论

    本文标题:[iOS]开发的函数

    本文链接:https://www.haomeiwen.com/subject/ljwwzttx.html