Hi All, i'm having a unique problem while taking the modulus of a number. please could any one help me out.
i)8432648 Mod 1048576 = 44040 i get 44040
ii)8498184 Mod 1048576 = 109576 i get 44040
iii)8563720 Mod 1048576 = 175112 iget 109576
iv)8629256 Mod 1048576 = 240648 i get 175112
v)8694792 Mod 1048576 = 306184 i get 240648
vi)8760328 Mod 1048576 = 371720 i get 306184
vii)8825864 Mod 1048576 = 437256 i get 437256
viii)8891400 Mod 1048576 = 502792 i get 437256
this just goes on. if u see the i) & vii) case i get the desired value but in the rest i get the value of privious number.
i am using aa=(aa%1048576); where aa is long int. and has values i denoted.
please could any one help me out with this.
Thanks Ajay