我想找...

搜尋

分享

目錄

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)

範例程式碼

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

參考


語法參考主頁面

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

發表評論

上部へスクロール