ABAP Keyword Documentation →  ABAP − Release-Specific Changes →  Changes in Release 3.0 → 

Arithmetic Expressions in Release 3.0


1. New operation: Exponentiation

2. New arithmetic functions



Modification 1

Exponentiation


The COMPUTE statement now supports the operator "**". Previously, the exponential operation "X ** Y" was awkward to express. You either had to use repeated multiplication (if Y was an integer) or the expression "EXP( Y * LOG( X ) )" for any exponent Y.



Modification 2

New arithmetic functions


Most common arithmetic functions are now supported. The functions ABS, SIGN, CEIL, FLOOR, TRUNC, and FRAC are suitable for all numeric types (I, P, and F). The functions SIN and COS, intended mainly for floating point operands, were already available, as well as EXP, LOG and SQRT. The following have now been added: