Hello folks

Each protein sequences can be converted into an integer value by multiplying the ASCII value of its left most character by 1280, that its second left most character by 1281, etc, and then adding up the resulting 4 values (The ASCII value for A = 65, B = 66, C = 67, …, Y = 89.)

For example the integer value for the sequence AFDE is:

I want to convert this calculation to java

(65 x 1283) + (70 x 1282) + (68 x 1281) + (69 x 1280) = 137470533

the numbers

-------------------------------------------------

Code:`double a = (Aint * (Math.pow( 128,3))) + (Fint * (Math.pow( 128,2))) + (Dint * (Math.pow( 128,1)))+ (Eint * (Math.pow( 128,0)));`

System.out.print(a);

-------------------------------

I got 1.37470533E8

why? any one has idea?