Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to calculate CUBE ROOT using ABAP such as u221B27 ?

Former Member
0 Kudos
815

Dear Experts,

I can handle square root in abap program .

But it's hard to do with CUBE ROOT ∛X .

1 ACCEPTED SOLUTION

abhimanyu_lagishetti7
Active Contributor
0 Kudos
106

This is no way related to web dynpro ABAP, Pl post the query in ABAP general for quicker response from next time

cube root of x = x to the power of 1/3

lv_int = 27 ** ( 1 / 3 ).

write:/ lv_int.

3 REPLIES 3

abhimanyu_lagishetti7
Active Contributor
0 Kudos
107

This is no way related to web dynpro ABAP, Pl post the query in ABAP general for quicker response from next time

cube root of x = x to the power of 1/3

lv_int = 27 ** ( 1 / 3 ).

write:/ lv_int.

0 Kudos
106

ah~~

why didn't i think of that? ^^;

Srilatha M & Abhimanyu Lagishetti

thank you so much.

Former Member
0 Kudos
106

Hello,

I am not sure if there is a function available in ABAP to do cube root like square root. (i couldnt find actually)

Try using the following expression to calculate cube root:

z = x ** ( 1 / 3 )

Hope this helps!

Thanks,

Srilatha