Products Downloads


French version


 

 

ADELIA

VADELIA

SADELIA

WADELIA

EADELIA

(I/B)

(I/B)

(B)

(I/B)

(B)

 

Description

This predefined function is used to raise a number to a power specified as a parameter.

 

Syntax

Result = &POWER_OF(Number;Power)

 

Parameters

 

Description

Contents

Controls

Result

Numeric variable with decimals.

Result of the calculation.

 

Number

Numeric variable or constant with decimals.

Number which is to be raised to the power specified as a parameter.

When this number is negative, the result is always equal to 0.

Mandatory parameter.

Power

Numeric variable or constant with decimals.

Power to which the number set as a parameter is to be raised.

Mandatory parameter.

 

Warning: When executed on AS/400 or in a Java/Web client/Cloud client part, and the exponent is not a variable without decimals containing a positive value or a numeric integer positive constant, the power is calculated using an intermediate variable of "double float" type. Thus, in case of more than 15 to 16 significant digits, there is a risk of loss in precision of result.

 

Example

NUMBER = 12.735

POWER = 2.535

RESULT = &POWER_OF(NUMBER;POWER)

*

* The RESULT is equal to: 632.6628544

*

NUMBER = 4

POWER = -2.01

RESULT = &POWER_OF(NUMBER;POWER)

*

* The RESULT is equal to: 0.0616395

 

List of predefined functions by topic

 

↑ Top of page

  • Aucune étiquette