Hi,

I've got a problem to find a way to create numerator and denominator for my calculation
Here is the formula: (used by analog devices ADF435x software (windows))
(INT+(FRAC/MOD)x(PFD/DIV))=RF

I just calculate some variables but cannot find FRAC variable (see picture)Name:  formula.JPG
Views: 335
Size:  13.7 KB

I found all my variables are OK but I found 6,25 for MOD !!! WOW not 125 as Analog give me
so.... I found some C code to calculate the FRAC and MOD, but how to calculate these numbers with PBP ? (FRAC & MOD knowing I found 6.25 for MOD)
Name:  pastedImage_2.png
Views: 340
Size:  26.4 KB
seems they use C code with integer (math.round) ?

thanks for help !
regards