我想找...

搜尋

分享

目錄

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 參考的文本是根據 知識共享署名-相同方式分享 3.0 許可證,部分文本是從 Arduino 參考 修改的。 參考中的代碼示例已發佈到公共領域。

返回頂端