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: 

Exceu00E7u00E3o: COMPUTE_POW_RANGE

Former Member
0 Kudos

hi,

I have a problem when execute the code below.

data: result type p, or type f.

p_d type p, or type f.

p_n type p. or type f.

result = 12.

p_d = 283.

p_n = 493.

result = ( ( result ** p_d ) mod p_n ).

What kind of data i should be use?

thanks in advance!

Alexandre

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

What exactly is the error?

To me it looks like a overflow error as the number might be big one. 12 raised to power of 283 is huge.

What exactly are you tyring to calculate?

Regards,

Ravi

Note : Please mark the helpful answers

3 REPLIES 3

Former Member
0 Kudos

Hi,

What exactly is the error?

To me it looks like a overflow error as the number might be big one. 12 raised to power of 283 is huge.

What exactly are you tyring to calculate?

Regards,

Ravi

Note : Please mark the helpful answers

0 Kudos

Ravikumar,

I need to store the value 'result'. I'm built a method to encrypt data. This calc made a part of RSA's algorithm.

How can i stored this value?

Thanks

Alexandre