I want to know the two integer number that division of them is this float. for example
x / y = 1.333333333....
$x$ and $y$ can be 8, 6 and 4, 3 ... i need x = 4 and y = 3.
For next example my number is 1.41 what are x and y? how can i find them ?
As in J.D.'s edit the best method is to use continued fractions :
At each step (for the evaluation of $x$) :
(as an alternative you could keep the 'rounded' integer and subtract it instead of the integer part)
Complete process for $x=1.41$ :
the succession of fractions is $\frac 10\to\frac 11\to\frac 32\to \frac 75\to \cdots\to \frac {141}{10}$
(note how these fractions 'shift' in the second fraction from the right)
$ \begin{array} {l|r|ccccc} x&j&&&&&f\\ \hline\\ 1.41 & \color{#0000ff}{1} & \color{#0000ff}{1}&=&\frac {\color{#0000ff}{1}}1&=&\frac 11\\ 1/0.41=2.43902\cdots & \color{#0000ff}{2} &1+\cfrac 1{\color{#0000ff}{2}}&=& \frac {1\cdot \color{#0000ff}{2}+1}{1\cdot \color{#0000ff}{2} +0}&=&\frac 32\\ 1/0.4390\cdots=2,2777\cdots & \color{#0000ff}{2}&1+\cfrac 1{2+\cfrac 1{\color{#0000ff}{2}}}&=& \frac {3\cdot \color{#0000ff}{2}+1}{2\cdot \color{#0000ff}{2} +1}&=&\frac 75\\ 1/0.2777\cdots=3.6 &\color{#0000ff}{3}&1+\cfrac 1{2+\cfrac 1{2+\cfrac 1{\color{#0000ff}{3}}}}&=& \frac {7\cdot \color{#0000ff}{3}+3}{5\cdot \color{#0000ff}{3} +2}&=&\frac {24}{17}\\ 1/0.6=1.6666\cdots & \color{#0000ff}{1}&\cdots&=&\frac {24\cdot \color{#0000ff}{1}+7}{17\cdot \color{#0000ff}{1} +5}&=&\frac {31}{22}\\ 1/0.6666\cdots=1.5\cdots & \color{#0000ff}{1}&\cdots&=& \frac {31\cdot \color{#0000ff}{1}+24}{22\cdot \color{#0000ff}{1} +17}&=&\frac {55}{39}\\ 1/0.5=2 & \color{#0000ff}{2}&\cdots&=& \frac {55\cdot \color{#0000ff}{2}+31}{39\cdot \color{#0000ff}{2}+22}&=&\frac {141}{100}\\ \text{stop!} &\\ \end{array} $
Since we started with a rational number the process ended in a finite number of steps (returning the exact $\frac {141}{100}$ here). For a quadratic number (like $\sqrt{3}+1$) the j integers produced will repeat. For none of these the $j$ number produced won't repeat (up to machine precision of course!).
Hoping this helped too,