blob: 0a7355caa3a0c600bfada29d0cef60eb48cac6b6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
.. _arduino-pow:
pow(base, exponent)
===================
Calculates the value of a number raised to a power.
Library Documentation
---------------------
.. doxygenfunction:: pow
Example
-------
``pow()`` can be used to raise a number to a fractional power. This
is useful for e.g. generating exponential mapping of values or
curves. See the `fscale <http://arduino.cc/playground/main/fscale>`_
function in the Arduino playground for more on this.
See Also
--------
- :ref:`sqrt() <arduino-sqrt>`
- :ref:`float <arduino-float>`
- :ref:`double <arduino-double>`
.. include:: cc-attribution.txt
|