Skip to Content
0
Jan 15, 2021 at 12:40 PM

What is the best way to check if value after power is not too large for integer

56 Views

Hello,

I have to raise the number to great power in abap and there are a problem. Sometimes number is too large (larger than INT4) and then runtime error appear (CX_SY_ARITHMETIC_OVERFLOW). What is the best way to protect my integer? I don't need huge numbers but the popup with error to the user should appear like "number too big".