pow()

[Math]

描述

Calculates the value of a number raised to a power. pow() can be used to raise a number to a fractional power. This is useful for generating exponential mapping of values or curves.

語法

pow(base, exponent)

參數

base: the number (double)
exponent: the power to which the base is raised (double)

回傳

The result of the exponentiation (double)

Example Code

You may refer to the fscale function in the Arduino code library.

參考


語法參考主頁面

86Duino 參考的文本是根據 Creative Commons Attribution-ShareAlike 3.0 License,部分文本是從 the Arduino reference 修改的。 參考中的代碼示例已發佈到公共領域。

發表評論

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

上部へスクロール