Reference   Language | Libraries | Comparison | Changes

pow(base, exponent)


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.


base: the number (float)

exponent: the power to which the base is raised (float)


The result of the exponentiation (double)


See the fscale function in the code library.

See also

Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

This reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License and is based on the Arduino reference. Code samples in the reference are released into the public domain.