Older Newer
Fri, 18 Feb 2022 11:18:38 . . . . (Paul Simoens)? [Typo]


Changes by last author:

Added:
= powi =

== Syntax ==

double powi(double x, int y)

== Arguments ==

:x

::The (double) value to be raised to a power.

:y

::The (integer) power to which the value is raised.

== Return ==

x raised to the power of y.

== Description ==

Returns x raised to the power of y: x^^y^^

== Example ==

<code>

%fml

OnFilterStart:

{

// This should give 2x2x2 = 8

Info("powi(2.0, 3) gives %f", powi(2.0, 3));

}

</code>

== See Also ==

pow, ipow

== Comments ==

Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.