Today, my professor explained how to sove this problem. Since I think that it might be useful to other users, I'll post here the answer.
Given a floating-point number $f$ in a particular encoding (for example IEEE 754 single/double precision), we want to know which subset of real numbers corresponds to $f$, that is to say which real numbers gets rounded to f when converted to the same encoding. We're using RNTE (Round To Nearest, Ties to Even) rounding.
We represent the encoding as a quadruple $\mathbb{F}(\beta,t,M_1,M_2)$, where $\beta$ is the base, $t$ is the number of significand digits after the point and $M_1$,$M_2$ are the lower and upper bounds for the exponent range, respectively.
For example, let's choose to work with IEEE 754 double precision numbers, which we can denote as $\mathbb{F}(2,52,-1023,1024)$.
Let $f = 17 = (10001)_{2} = 1.\overbrace{00010...0}^\text{52 digits} \times 2^{4} \in \mathbb{F}$.
We have to determine the predecessor and the successor of $f$, both of which are in $\mathbb{F}$. Let's call them $a$ and $b$, respectively. In order to do this, we have to find the distance between $a$ and $f$ and between $f$ and $b$. We know that $17 \in [16, 32] = [2^{4},2^{5}]$, so we can use the formula $y-x=\beta^{p-t}$ to get those distances, where $x,y \in [\beta^{p},\beta^{p+1}]$, $\beta=2$, $p=4$, $p+1=5$ and $t=52$.
So, $a = 17 - 2^{4-52} = 17 - 2^{-48}$,
and $b = 17 + 2^{4-52} = 17 + 2^{-48}$
Now we can apply the RNTE rounding, which states that a real number $x$ is rounded to its nearest number in $\mathbb{F}$ and, if there are two candidates, it chooses the one with an even mantissa (or significand). The latter case means that $x$ is the midpoint between two consecutive numbers in $\mathbb{F}$.
The midpoint between $a$ and $17$ is $ x_1 = 17 - \frac{1}{2} 2^{-48} = 17 - 2^{-49}$,
the midpoint between $17$ and $b$ is $ x_2 = 17 + \frac{1}{2} 2^{-48} = 17 + 2^{-49}$
Each real number between $x_1$ and $x_2$ gets rounded to $17$, including $x_1$ and $x_2$, because 17 has an even mantissa in our representation.
So the answer is $\{x \in \mathbb{R} \mid 17 - 2^{-49} \leq x \leq 17 + 2^{-49}\}$.