函數(shù) |
語法 |
功能 |
Abs |
Abs(num) | 返回一個數(shù)的絕對值 |
Sqr |
Squ(num) | 返回一個數(shù)的平方根 |
Sin |
Sin(num) | 返回角度的正弦值 |
Cos |
Cos(num) | 返回角度的余弦值 |
Tan |
Tan(num) | 返回角度的正切值 |
Atn |
Atn(num) | 返回角度的反正切值 |
Log |
Log(num) | 返回一個數(shù)的對數(shù)值 |
Int |
Int(num) | 取整函數(shù),返回小于等于number的第一個整數(shù) |
FormatNumber |
FormatNumber(num1,num2) | 轉(zhuǎn)化為指定小數(shù)位數(shù)(num2)的數(shù)字 |
Rnd |
Rnd() | 返回一個0到1的隨機數(shù) |
Ubound |
Ubound(數(shù)組名稱,維數(shù)) | 返回數(shù)組的最大下標數(shù),如數(shù)組只有一維,可省略維數(shù) |