VB中经常使用的数学函数

2025-04-18 11:33:08

1、Sin(N):返回自变量N的正弦值。(N为弧度)

VB中经常使用的数学函数
VB中经常使用的数学函数

2、Cos(N):返回自变量N的余弦值。(N为弧度)

VB中经常使用的数学函数
VB中经常使用的数学函数

3、Tan(N):返回自变量N的正切值。(N为弧度)

VB中经常使用的数学函数
VB中经常使用的数学函数

4、Atn(N):返回自变量N的反正弦值。(函数值为弧度)

VB中经常使用的数学函数
VB中经常使用的数学函数

5、Sgn(N):返回自变量N的符号。N<0,返回-1;N=0,返回0;N<0,返回-1;N>0,返回1。

VB中经常使用的数学函数
VB中经常使用的数学函数

6、Abs(N):返回自变量N的绝对值。

VB中经常使用的数学函数
VB中经常使用的数学函数

7、Sqr(N):返回自变量N的平方根,N≥0。

VB中经常使用的数学函数
VB中经常使用的数学函数

8、Exp(N):返回e的N次幂值,N≥0。

VB中经常使用的数学函数
VB中经常使用的数学函数

9、Log(N):返回N的自然对数,N>0。

VB中经常使用的数学函数
VB中经常使用的数学函数

10、Int(N):返回不大于N的最大整数。

VB中经常使用的数学函数
VB中经常使用的数学函数

11、Cint(N):四舍五入取整。

VB中经常使用的数学函数
VB中经常使用的数学函数

12、Rnd[(N)]:返回0~1的随机小数。

VB中经常使用的数学函数
VB中经常使用的数学函数
声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢