Hi darrel

I gave it a try but I think there is still a problem

As I told you it is a part of the C routine, but if i take the remainder from
:
Nlong = temp/64000 = 54490000/64000 = 851,40625000
so the remainder is 0,40625000 and multiply by 64000 divide by 1000
is giving me the correct A value

Tis is not the case with your example

Can you have a look ?, you can try any example of freq (in the range 430000.0 til 440000.0 following my example

Thanks again