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

%fml

OnFilterStart:
{
  // This should give 2x2x2 = 8
  Info("powi(2.0, 3) gives %f", powi(2.0, 3));
}

See Also

pow, ipow

Comments

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