SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Reference → Processing Internal Data → Numeric Calculations → Numerical Functions →ipow - Integer Power Function
Syntax
... ipow( base = arg exp = n ) ...
Effect
This function raises the argument arg passed to base to the exponent n passed to exp. The arguments arg and n are numerical expression positions. Any numeric data object can be specified for arg. n expects the type i and exponents of other types are converted to i. If the argument arg has the value 0, then the value of the exponent n must be greater than or equal to 0.
The function ipow is overloaded with the effect that the return value can have different numerical types.
This function can be specified in general and numeric expression positions. The calculation type is determined from the argument arg in the same way as with the other numerical functions. The argument n does not have any effect on the data type of the return value.
Notes
Example
See Power Function ipow.