pow(base, exponent)
描述
計算一個數字的乘方結果,pow()
也可以計算小數次方的乘方結果,這在計算數值或曲線的指數映射時是很有用的。
參數
base
: 欲乘方的數字 (double)
exponent
: 向上乘的次方數 (double)
回傳
數字乘方的結果 (double)
範例
請參考 Arduino 代碼庫中的 fscale 函式
See also
本頁由熱血青年 LBU 譯自英文版。
The text of the 86Duino reference is a modification of the Arduino reference, and is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.