I assume we have 3.424242......
Take the repeating and non-repeating part [ without the decimal ] and subtract the non-repeating part
[ 342 - 3 ] = 339 (1)
Write an integer with the same number of "9s" as the number of repeating digits = 99 (2)
Put (1) over (2) =
339 / 99
Check to see that 339 / 99 = 3.424242......