Please enable JavaScript to view this site.

ESL Documentation

MATHLIB Function

Return X raised to the Y power.

POWER(X_FV, Y_FV)

X_FV

A non-zero floating point value that you want to use for the base.

Y_FV

A positive floating point value that you want to use for the exponent.

Description

Use this function to return X raised to the Y power. If Y is 0.0, the function returns 1.0. If X is negative and Y is not a whole number (that is, Y has a non-zero fractional part), the function computes the value using only the integral part of Y.

Errors

POWER: base = 0 and exponent < 0; returning 0.0.

X was specified as 0.0 and Y as negative, so the function returned the value 0.0 and placed this message in the ESL errorlog.