0514-86177077
9:00-17:00(工作日)
返回數字的絕對值。
Abs(number)
number 參數可以是任意有效的數值表達式。如果 number 包含 Null,則返回 Null;如果是未初始化變量,則返回 0。
數字的絕對值是其無符號的數值大小。例如,Abs(-1) 和 Abs(1) 都返回 1。
下面示例利用 Abs 函數計算數字的絕對值:
Dim MyNumberMyNumber = Abs(50.3 ) '返回 50.3。MyNumber = Abs(-50.3) '返回 50.3。
Dim MyNumberMyNumber = Abs(50.3 )
'
50.3
MyNumber = Abs(-50.3)
標簽:柳州 內蒙古 張掖 鶴壁 達州 南京 資質掛靠 丹東
上一篇:VBS教程:函數-Array 函數
下一篇:VBS教程:在 VBScript 中使用對象
Copyright ? 1999-2012 誠信 合法 規范的巨人網絡通訊始建于2005年
蘇ICP備15040257號-8