|
Microsoft® Visual Basic® Scripting Edition ^ 運算符 |
語言參考 版本 1 |
用于計算數(shù)的指數(shù)次方。
result = number^exponent^ 運算符的語法有以下部分:
部分 描述 result 任意數(shù)值變量。 number 任意數(shù)值表達式。 exponent 任意數(shù)值表達式。
僅當 exponent 參數(shù)為整數(shù)時,Number 參數(shù)才可為負值。如果單個表達式中有多個指數(shù)運算,則 ^ 運算符按從左到右的順序執(zhí)行。如果 number 或 exponent 為 Null 表達式,則 result 值也為 Null。